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.
This commit is contained in:
Dave Methvin 2012-07-25 21:33:30 -04:00
parent ed898c62c8
commit d4ec6804e8

View File

@ -598,7 +598,7 @@ test("stop() - several in queue", function() {
var w = 0; var w = 0;
$foo.hide().css( "width", 200 ).css("width"); $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": "hide" }, 1000);
$foo.animate({ "width": "show" }, 1000); $foo.animate({ "width": "show" }, 1000);
setTimeout(function(){ setTimeout(function(){
@ -612,7 +612,7 @@ test("stop() - several in queue", function() {
$foo.stop(true); $foo.stop(true);
start(); start();
}, 100); }, 200);
}); });
test("stop(clearQueue)", function() { test("stop(clearQueue)", function() {