Skip to content

Commit 121455a

Browse files
committed
Tests: Enable tests for ES6/ES2018/ESM features in BrowserStack
1 parent d6886e0 commit 121455a

File tree

6 files changed

+10
-55
lines changed

6 files changed

+10
-55
lines changed

build/browserstack-debug.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"test_framework": "qunit",
3-
"test_path": ["test/index-es5.html"],
3+
"test_path": ["test/index.html"],
44
"test_server_port": "8899",
55
"exit_with_fail": true,
66
"timeout": 600,

build/browserstack-full.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"test_framework": "qunit",
3-
"test_path": ["test/index-es5.html"],
3+
"test_path": ["test/index.html"],
44
"test_server_port": "8899",
55
"exit_with_fail": true,
66
"timeout": 600,
77
"browsers": [
88
"firefox_45",
9+
"firefox_60",
910
"firefox_78",
1011
"firefox_previous",
1112
"firefox_current",
1213
"ie_9",
1314
"ie_10",
1415
"ie_11",
1516
"edge_15",
16-
"edge_18",
17+
"edge_16",
1718
"edge_previous",
1819
"edge_current",
1920
"safari_9.1",
@@ -30,9 +31,11 @@
3031
"os": "OS X",
3132
"os_version": "Sierra"
3233
},
34+
"opera_48",
3335
"opera_previous",
3436
"opera_current",
3537
"chrome_58",
38+
"chrome_61",
3639
"chrome_previous",
3740
"chrome_current",
3841
{

build/browserstack-quick.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"test_framework": "qunit",
3-
"test_path": ["test/index-es5.html"],
3+
"test_path": ["test/index.html"],
44
"test_server_port": "8899",
55
"exit_with_fail": true,
66
"timeout": 600,

test/cli/structure.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ QUnit.module('structure', () => {
2727
});
2828
});
2929

30-
QUnit.test('test/index-es5.html', assert => {
31-
const contents = fs.readFileSync(path.join(__dirname, '..', 'index-es5.html'), 'utf8');
32-
files.forEach(file => {
33-
assert.true(contents.includes(file), file);
34-
});
35-
});
36-
3730
QUnit.test('test/index-xhtml.xhtml', assert => {
3831
const contents = fs.readFileSync(path.join(__dirname, '..', 'index-xhtml.xhtml'), 'utf8');
3932
files.forEach(file => {

test/index-es5.html

Lines changed: 0 additions & 42 deletions
This file was deleted.

test/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
</script>
1212

1313
<script src="main/assert.js"></script>
14-
<script src="main/assert-es6.js"></script>
14+
<!-- Set type=module to skip ES6+ tests in ES5 browsers -->
15+
<script src="main/assert-es6.js" type="module"></script>
1516
<script src="main/assert-step.js"></script>
1617
<script src="main/assert-timeout.js"></script>
1718
<script src="main/async.js"></script>
@@ -24,7 +25,7 @@
2425
<script src="main/events.js"></script>
2526
<script src="main/HtmlReporter.js"></script>
2627
<script src="main/legacy.js"></script>
27-
<script src="main/modules-es2018.js"></script>
28+
<script src="main/modules-es2018.js" type="module"></script>
2829
<script src="main/modules-esm.mjs" type="module"></script>
2930
<script src="main/modules.js"></script>
3031
<script src="main/onUncaughtException.js"></script>

0 commit comments

Comments
 (0)