Skip to content
This repository was archived by the owner on Jan 22, 2023. It is now read-only.

Commit dec7c40

Browse files
author
Lars den Bakker
committed
Run es module test only on browsers with native support
1 parent 50e52a3 commit dec7c40

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/index.html

+10-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</script>
2424
<script src="../../web-component-tester/browser.js"></script>
2525
<script>
26-
WCT.loadSuites([
26+
const suites = [
2727
'html/HTMLImportsLoaded-native.html',
2828
'html/HTMLImports-lazy.html',
2929
'html/link-import.html',
@@ -50,7 +50,13 @@
5050
'html/import-for-element.html',
5151
'html/ready-state.html',
5252
'html/resolve-path.html',
53-
'html/load-imports.html',
54-
'html/es-module.html',
55-
]);
53+
'html/load-imports.html'
54+
];
55+
56+
// Only run this test on browsers that supports es modules natively
57+
if ('noModule' in document.createElement('script')) {
58+
suites.push('html/es-module.html')
59+
}
60+
61+
WCT.loadSuites(suites);
5662
</script>

0 commit comments

Comments
 (0)