Browse files

Uses a more direct approach to notify success shouldn't be triggered …

…in case of an abort.
  • Loading branch information...
1 parent 283ff23 commit f491c77e573c67f5c7db06aa58bb5b781eaf4840 @jaubourg committed Aug 12, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/unit/ajax/css.js
View
5 test/unit/ajax/css.js
@@ -49,13 +49,12 @@ test( "abort", function() {
});
stop();
request.done(function() {
- strictEqual( arguments, undefined );
+ ok( false, "success" );
}).fail(function() {
ok( true, "error" );
setTimeout( function() {
notStrictEqual( div.css("marginLeft") , "27px" , "rule is not applied" );
+ start();
}, 1500 );
- }).always(function() {
- setTimeout( start, 2000 );
}).abort();
});

0 comments on commit f491c77

Please sign in to comment.