-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Produce clearer, contextual failures when assert.async callbacks are called incorrectly #1595
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
76252b1
Core: fixing module.only logic for "flat" structures
smcclure15 eb56280
Tests: move "only" tests to CLI suite to verify TAP output
smcclure15 8036dcd
Tests: delete sandbox test and add node tests
smcclure15 7fb993b
Tests: restoring sandboxed-iframe test
smcclure15 5a75285
Tests: remove trailing whitespace
smcclure15 881d010
Merge branch 'master' into module-only-flat
smcclure15 3ee0efd
Core: prefer "ignore" over "closed"
smcclure15 2a22bd3
Merge branch 'master' into module-only-flat
smcclure15 ea8a5f5
Merge branch 'master' into module-only-flat
Krinkle a02d2c1
Merge remote-tracking branch 'upstream/master'
smcclure15 c455c51
Merge remote-tracking branch 'upstream/main'
smcclure15 21cafac
show more context from assert.async drool
smcclure15 876a070
remove "global failure" handling
smcclure15 81e7886
remove obsolete tests for onerror
smcclure15 8de9cfe
add unittests
smcclure15 1fd59c9
make tests robust against different node versions
smcclure15 27f5242
Merge branch 'main' into async-drool
smcclure15 0603f39
Merge branch 'main' into async-drool
smcclure15 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,6 @@ | ||
QUnit.test( "times out before scheduled done is called", assert => { | ||
assert.timeout( 10 ); | ||
const done = assert.async(); | ||
assert.true( true ); | ||
setTimeout( done, 20 ); | ||
} ); |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to self-flag this, after some more thorough bashing. Here's my counter-example:
In the current release, that shows a console error with
Uncaught Error: oops
, but it also shows a "global failure" asscript error
. In this PR, you see the console error, but otherwise a passing test in the report. That is a no-go, and I will re-work this.