Commit d4ec6804 authored by Dave Methvin's avatar Dave Methvin

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.
parent ed898c62
...@@ -598,7 +598,7 @@ test("stop() - several in queue", function() { ...@@ -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() { ...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment