]> source.dussan.org Git - jquery.git/commitdiff
Fix test for #13937 ticket. Close gh-1299
authorOleg <markelog@gmail.com>
Thu, 27 Jun 2013 10:35:21 +0000 (14:35 +0400)
committerOleg <markelog@gmail.com>
Mon, 1 Jul 2013 18:31:01 +0000 (22:31 +0400)
test/unit/effects.js

index 4c4e31495d13e577c647f1c6d41a48b1d1c096be..e740191ceb6d7878e90b111f3f06bf8ae937b3b9 100644 (file)
@@ -2133,7 +2133,11 @@ asyncTest( ".finish() is applied correctly when multiple elements were animated
                ok( elems.eq( 0 ).queue().length, "non-empty queue for preceding element" );
                ok( elems.eq( 2 ).queue().length, "non-empty queue for following element" );
                elems.stop( true );
-               start();
+
+               // setTimeout needed in order to avoid setInterval/setTimeout execution bug in FF
+               window.setTimeout(function() {
+                       start();
+               }, 1000 );
        }, 100 );
 });