mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Tests: further improvements QUnit 2.0 migration
* Remove QUnit jshint globals * Extend QUnit.assert methods * Use assert.async instead of start/stop/done Refb930d14ce6Refc8d15a2f9f
This commit is contained in:
@@ -505,12 +505,14 @@ QUnit.test( "[PIPE ONLY] jQuery.Deferred.pipe - context", function( assert ) {
|
||||
} );
|
||||
} );
|
||||
|
||||
QUnit.asyncTest( "jQuery.Deferred.then - spec compatibility", function( assert ) {
|
||||
QUnit.test( "jQuery.Deferred.then - spec compatibility", function( assert ) {
|
||||
|
||||
assert.expect( 1 );
|
||||
|
||||
var done = assert.async();
|
||||
|
||||
var defer = jQuery.Deferred().done( function() {
|
||||
setTimeout( start );
|
||||
setTimeout( done );
|
||||
throw new Error();
|
||||
} );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user