X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Feffects.js;h=cefcc15a47e04f8baaac36402e9ee6f52e52cb14;hb=0d5bd174614fa278826ac4aaaa64342f17c0ae56;hp=2c5616dd92b5c4ee3a2950f798a8679e4081068f;hpb=f0505c6d75722d5617dedfd5f6165285c18103c8;p=jquery.git diff --git a/test/unit/effects.js b/test/unit/effects.js index 2c5616d..cefcc15 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -120,7 +120,7 @@ test("animate option (queue === false)", function () { */ test("animate with no properties", function() { - expect(1); + expect(2); var divs = jQuery("div"), count = 0; @@ -129,6 +129,16 @@ test("animate with no properties", function() { }); equals( divs.length, count, "Make sure that callback is called for each element in the set." ); + + stop(); + + var foo = jQuery("#foo"); + + foo.animate({}); + foo.animate({top: 10}, 100, function(){ + ok( true, "Animation was properly dequeued." ); + start(); + }); }); test("animate duration 0", function() {