From: Dave Methvin Date: Thu, 26 Jul 2012 01:33:30 +0000 (-0400) Subject: Give .stop() queue animations more leeway for Stutterin' Swarmy. X-Git-Tag: 1.8rc1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d4ec6804e83b2c060a9fc94a044893751c2f640e;p=jquery.git 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. --- diff --git a/test/unit/effects.js b/test/unit/effects.js index 6d200b534..806192ea0 100644 --- a/test/unit/effects.js +++ b/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() {