// [ reject_list | resolve_list ].disable; progress_list.lock
}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
-
- // <DEPRECATED> [ isResolved | isRejected ] = [ resolve_list | reject_list ].fired
- promise[ "isR" + stateString.substr( 1 ) ] = list.fired;
}
// deferred[ resolve | reject | notify ] = list.fire
test("jQuery.Deferred" + withNew, function() {
- expect( 23 );
+ expect( 21 );
var defer = createDeferred();
createDeferred().resolve().done(function() {
ok( true , "Success on resolve" );
- ok( this.isResolved(), "Deferred is resolved" );
strictEqual( this.state(), "resolved", "Deferred is resolved (state)" );
}).fail(function() {
ok( false , "Error on resolve" );
ok( false , "Success on reject" );
}).fail(function() {
ok( true , "Error on reject" );
- ok( this.isRejected(), "Deferred is rejected" );
strictEqual( this.state(), "rejected", "Deferred is rejected (state)" );
}).always(function() {
ok( true , "Always callback on reject" );