Skip to content

Instantly share code, notes, and snippets.

@lboynton
Created October 8, 2012 11:08
Show Gist options
  • Save lboynton/3851972 to your computer and use it in GitHub Desktop.
Save lboynton/3851972 to your computer and use it in GitHub Desktop.
QUnit: Test event is not triggered
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