aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-21 11:11:03 -0500
committerjeresig <jeresig@gmail.com>2009-12-21 11:11:03 -0500
commit0d5bd174614fa278826ac4aaaa64342f17c0ae56 (patch)
treeefc8cba12b0cd8d6158c1a4120e5e0344cdd460c /test
parentf0505c6d75722d5617dedfd5f6165285c18103c8 (diff)
downloadjquery-0d5bd174614fa278826ac4aaaa64342f17c0ae56.tar.gz
jquery-0d5bd174614fa278826ac4aaaa64342f17c0ae56.zip
Moved logic for handling .animate({}), doesn't queue anymore. Fixes #5459.
Diffstat (limited to 'test')
-rw-r--r--test/unit/effects.js12
1 files changed, 11 insertions, 1 deletions
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() {