git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved logic for handling .animate({}), doesn't queue anymore. Fixes #5459.
[jquery.git]
/
test
/
unit
/
effects.js
diff --git
a/test/unit/effects.js
b/test/unit/effects.js
index
2c5616d
..
cefcc15
100644
(file)
--- 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() {
*/
test("animate with no properties", function() {
- expect(1);
+ expect(2);
var divs = jQuery("div"), count = 0;
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." );
});
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() {
});
test("animate duration 0", function() {