aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/queue.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/queue.js')
-rw-r--r--test/unit/queue.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/queue.js b/test/unit/queue.js
index 40523e7f9..701956050 100644
--- a/test/unit/queue.js
+++ b/test/unit/queue.js
@@ -1,7 +1,7 @@
module("queue", { teardown: moduleTeardown });
test("queue() with other types",function() {
- expect(11);
+ expect(12);
var counter = 0;
stop();
@@ -36,6 +36,8 @@ test("queue() with other types",function() {
equal( $div.queue("foo").length, 4, "Testing queue length" );
+ equal( $div.queue("foo", undefined).queue("foo").length, 4, ".queue('name',undefined) does nothing but is chainable (#5571)");
+
$div.dequeue("foo");
equal( counter, 3, "Testing previous call to dequeue" );
@@ -289,4 +291,4 @@ test("promise()", function() {
jQuery.each( objects, function() {
this.dequeue();
});
-}); \ No newline at end of file
+});