Tests: use assert syntax in restored test

This commit is contained in:
Timmy Willison 2016-01-07 14:10:04 -05:00
parent 771600f858
commit 56b965655a

View File

@ -11,12 +11,12 @@ QUnit.test( "null or undefined handler", function( assert ) {
// Supports Fixes bug #7229
try {
jQuery( "#firstp" ).on( "click", null );
ok( true, "Passing a null handler will not throw an exception" );
assert.ok( true, "Passing a null handler will not throw an exception" );
} catch ( e ) {}
try {
jQuery( "#firstp" ).on( "click", undefined );
ok( true, "Passing an undefined handler will not throw an exception" );
assert.ok( true, "Passing an undefined handler will not throw an exception" );
} catch ( e ) {}
} );