From 0d5bd174614fa278826ac4aaaa64342f17c0ae56 Mon Sep 17 00:00:00 2001 From: jeresig Date: Mon, 21 Dec 2009 11:11:03 -0500 Subject: Moved logic for handling .animate({}), doesn't queue anymore. Fixes #5459. --- test/unit/effects.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit/effects.js b/test/unit/effects.js index 2c5616dd9..cefcc15a4 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() { -- cgit v1.2.3