Created
October 8, 2012 11:08
-
-
Save lboynton/3851972 to your computer and use it in GitHub Desktop.
QUnit: Test event is not triggered
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
asyncTest('Test event is not triggered', 1, function() | |
{ | |
// do stuff to maybe trigger anevent on body | |
$(document).one('anevent', function(e) | |
{ | |
ok(false, 'Should not trigger anevent'); | |
}); | |
setTimeout(function() | |
{ | |
ok(true, 'Should be OK if anevent has not been triggered by now'); | |
start(); | |
}, 500); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment