X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=test%2Funit%2Ffx.js;h=8af8031bf25c420fcbe4a9274dfd39e32e0e1a27;hb=66c98419aa6f93deb2c3b7060191fc96c885dc29;hp=978ef7178dc92ecfd692dd78fca2e8c662b463ca;hpb=d7d908b05a442745c1a90728805b74db0a7921cf;p=jquery.git diff --git a/test/unit/fx.js b/test/unit/fx.js index 978ef71..8af8031 100644 --- a/test/unit/fx.js +++ b/test/unit/fx.js @@ -53,20 +53,16 @@ test("animate option (queue === false)", function () { var order = []; var $foo = jQuery("#foo"); - $foo.animate({width:'100px'}, 200, function () { + $foo.animate({width:'100px'}, 3000, function () { // should finish after unqueued animation so second order.push(2); + isSet( order, [ 1, 2 ], "Animations finished in the correct order" ); + start(); }); $foo.animate({fontSize:'2em'}, {queue:false, duration:10, complete:function () { // short duration and out of queue so should finish first order.push(1); }}); - $foo.animate({height:'100px'}, 10, function() { - // queued behind the first animation so should finish third - order.push(3); - isSet( order, [ 1, 2, 3], "Animations finished in the correct order" ); - start(); - }); }); test("animate duration 0", function() {