]> 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:42:25 +0000 (22:42 +0400)
(cherry picked from commit 308980ee2a5c85ba1600446d093edc921f9a71de)

test/unit/effects.js

index e50fc2185ce11ba508e5fdd6549143f33c6aec5c..7fc8e7336a57e56e570778a1076df990adbfba78 100644 (file)
@@ -2171,7 +2171,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 );
 });