From d4ec6804e83b2c060a9fc94a044893751c2f640e Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Wed, 25 Jul 2012 21:33:30 -0400 Subject: [PATCH] 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. --- test/unit/effects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {