Skip to content

Commit

Permalink
Tests: Replace onerror/inside-test.html with a main test
Browse files Browse the repository at this point in the history
* This additional entry point is no longer needed now.
  It was already redundant with test/index.html.

* Rename the file to match the `QUnit.module()` call.

* Include it in the test run for mozjs
  (previously it was only in index.html and test-on-node).

Ref #1511.
  • Loading branch information
Krinkle committed Aug 9, 2021
1 parent d7c983b commit 9e392ed
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 16 deletions.
3 changes: 1 addition & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ module.exports = function( grunt ) {
"test/reporter-urlparams.html",
"test/reporter-urlparams-hidepassed.html",
"test/moduleId.html",
"test/onerror/inside-test.html",
"test/seed.html",
"test/overload.html",
"test/preconfigured.html",
Expand Down Expand Up @@ -124,9 +123,9 @@ module.exports = function( grunt ) {
"test/main/deepEqual.js",
"test/main/stack.js",
"test/main/utilities.js",
"test/main/onError.js",
"test/main/onUncaughtException.js",
"test/events-in-test.js",
"test/onerror/inside-test.js",
"test/setTimeout.js",
"test/node/storage-1.js",
"test/node/storage-2.js",
Expand Down
2 changes: 1 addition & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<script src="main/deepEqual.js"></script>
<script src="main/stack.js"></script>
<script src="main/utilities.js"></script>
<script src="main/onError.js"></script>
<script src="main/onUncaughtException.js"></script>
<script src="setTimeout.js"></script>
<script src="reporter-html/reporter-html.js"></script>
<script src="reporter-html/diff.js"></script>
<script src="reporter-html/unhandled-rejection.js"></script>
<script src="onerror/inside-test.js"></script>
</head>
<body>
<div id="qunit"></div>
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions test/mozjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ loadRelativeToScript( "../test/main/dump.js" );
loadRelativeToScript( "../test/main/deepEqual.js" );
loadRelativeToScript( "../test/main/stack.js" );
loadRelativeToScript( "../test/main/utilities.js" );
loadRelativeToScript( "../test/main/onError.js" );
loadRelativeToScript( "../test/main/onUncaughtException.js" );

QUnit.start();
13 changes: 0 additions & 13 deletions test/onerror/inside-test.html

This file was deleted.

0 comments on commit 9e392ed

Please sign in to comment.