Skip to content
Permalink
Browse files

Give .stop() queue animations more leeway for Stutterin' Swarmy.

This test sometimes fails with only 2 animations left in the queue, so this extends the first animation in case we're running afoul of the one-second rule for background windows.
  • Loading branch information...
dmethvin committed Jul 26, 2012
1 parent ed898c6 commit d4ec6804e83b2c060a9fc94a044893751c2f640e
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/effects.js
@@ -598,7 +598,7 @@ test("stop() - several in queue", function() {
var w = 0;
$foo.hide().css( "width", 200 ).css("width");

$foo.animate({ "width": "show" }, 1000);
$foo.animate({ "width": "show" }, 1500);
$foo.animate({ "width": "hide" }, 1000);
$foo.animate({ "width": "show" }, 1000);
setTimeout(function(){
@@ -612,7 +612,7 @@ test("stop() - several in queue", function() {

$foo.stop(true);
start();
}, 100);
}, 200);
});

test("stop(clearQueue)", function() {

0 comments on commit d4ec680

Please sign in to comment.
You can’t perform that action at this time.