diff options
author | Colin Snover <github.com@zetafleet.com> | 2010-12-30 00:34:48 -0600 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2010-12-30 00:34:48 -0600 |
commit | 3e0cc815043c2425819743e907a0ce263a7ce164 (patch) | |
tree | 6d579f50e3b86ab350291c0a63619ee739804f4d /test/unit/queue.js | |
parent | 429b078dc7b5cf7765b44c8d32e125ecd8f1e2c9 (diff) | |
download | jquery-3e0cc815043c2425819743e907a0ce263a7ce164.tar.gz jquery-3e0cc815043c2425819743e907a0ce263a7ce164.zip |
Clean trailing whitespace from all files.
Diffstat (limited to 'test/unit/queue.js')
-rw-r--r-- | test/unit/queue.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/test/unit/queue.js b/test/unit/queue.js index 79b753c11..eada0eede 100644 --- a/test/unit/queue.js +++ b/test/unit/queue.js @@ -3,9 +3,9 @@ module("queue"); test("queue() with other types",function() { expect(9); var counter = 0; - + var $div = jQuery({}); - + $div .queue('foo',function(){ equals( ++counter, 1, "Dequeuing" ); @@ -21,26 +21,26 @@ test("queue() with other types",function() { .queue('foo',function(){ equals( ++counter, 4, "Dequeuing" ); }); - + equals( $div.queue('foo').length, 4, "Testing queue length" ); - + $div.dequeue('foo'); - + equals( counter, 3, "Testing previous call to dequeue" ); equals( $div.queue('foo').length, 1, "Testing queue length" ); - + $div.dequeue('foo'); - + equals( counter, 4, "Testing previous call to dequeue" ); equals( $div.queue('foo').length, 0, "Testing queue length" ); }); test("queue(name) passes in the next item in the queue as a parameter", function() { expect(2); - + var div = jQuery({}); var counter = 0; - + div.queue("foo", function(next) { equals(++counter, 1, "Dequeueing"); next(); @@ -50,16 +50,16 @@ test("queue(name) passes in the next item in the queue as a parameter", function }).queue("bar", function() { equals(++counter, 3, "Other queues are not triggered by next()") }); - + div.dequeue("foo"); }); test("queue(name) passes in the next item in the queue as a parameter", function() { expect(2); - + var div = jQuery({}); var counter = 0; - + div.queue("foo", function(next) { equals(++counter, 1, "Dequeueing"); next(); @@ -69,17 +69,17 @@ test("queue(name) passes in the next item in the queue as a parameter", function }).queue("bar", function() { equals(++counter, 3, "Other queues are not triggered by next()") }); - + div.dequeue("foo"); }); test("queue() passes in the next item in the queue as a parameter to fx queues", function() { expect(2); stop(); - + var div = jQuery({}); var counter = 0; - + div.queue(function(next) { equals(++counter, 1, "Dequeueing"); var self = this; @@ -111,10 +111,10 @@ test("delay()", function() { test("clearQueue(name) clears the queue", function() { expect(1); - + var div = jQuery({}); var counter = 0; - + div.queue("foo", function(next) { counter++; jQuery(this).clearQueue("foo"); @@ -122,18 +122,18 @@ test("clearQueue(name) clears the queue", function() { }).queue("foo", function(next) { counter++; }); - + div.dequeue("foo"); - + equals(counter, 1, "the queue was cleared"); }); test("clearQueue() clears the fx queue", function() { expect(1); - + var div = jQuery({}); var counter = 0; - + div.queue(function(next) { counter++; var self = this; @@ -141,8 +141,8 @@ test("clearQueue() clears the fx queue", function() { }).queue(function(next) { counter++; }); - + equals(counter, 1, "the queue was cleared"); - + div.removeData(); }); |