Created
May 23, 2012 16:52
-
-
Save davglass/2776330 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 is a test function': function() { | |
var test = this; | |
doSomethingAsync(function() { | |
Assert.isTrue(false, 'This throws'); | |
test.resume(function() { | |
Assert.isTrue(false, 'This is caught'); | |
}); | |
}); | |
test.wait(); | |
} |
It's been reported several times, just adding it to the ticket so that it doesn't keep getting reported.. :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't do that. :) All asserts have to be done within the context of a test, which means either outside of
doSomethingAsync()
or inside oftest.resume()
. Otherwise, the error won't be caught. It's a known issue, and I don't know of any magic that would make it not an issue.