forked from qunitjs/qunit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Add module-nested.js test case
This asserts the undesirable status quo, where the stack is left in a bad state if the module closure encounters a global error while test suites are still being loaded. Ref qunitjs#1478.
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
try { | ||
QUnit.module( "module 1", () => { | ||
QUnit.test( "test in module 1", assert => { | ||
assert.true( true ); | ||
} ); | ||
} ); | ||
} catch ( e ) { | ||
|
||
// Ignore | ||
} | ||
|
||
try { | ||
QUnit.module( "module 2", () => { | ||
|
||
// trigger an error in executeNow | ||
undefined(); | ||
|
||
QUnit.test( "test in module 2", assert => { | ||
assert.true( true ); | ||
} ); | ||
} ); | ||
} catch ( e ) { | ||
|
||
// Ignore | ||
} | ||
|
||
|
||
try { | ||
QUnit.module( "module 3", () => { | ||
QUnit.test( "test in module 3", assert => { | ||
assert.true( true ); | ||
} ); | ||
} ); | ||
} catch ( e ) { | ||
|
||
// Ignore | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters