]> source.dussan.org Git - jquery-ui.git/commitdiff
Button unit tests: Make sure the test timeout runs after the formResetHandler. Fixes...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 25 Nov 2013 14:53:51 +0000 (15:53 +0100)
committerScott González <scott.gonzalez@gmail.com>
Tue, 26 Nov 2013 21:00:32 +0000 (16:00 -0500)
(cherry picked from commit 63026bd2c75f326db558d6173045343b0ce3dc09)

tests/unit/button/button_core.js

index 6df7da9db1f116e688b819ec8065591e92b10285..41623e08dfaa089c866e078ee3ab62e2c81f200b 100644 (file)
@@ -174,7 +174,7 @@ asyncTest( "Resetting a button's form should refresh the visual state of the but
        setTimeout(function() {
                ok( checkbox.button( "widget" ).hasClass( "ui-state-active" ));
                start();
-       });
+       }, 1 );
 });
 
 asyncTest( "#6711 Checkbox/Radiobutton do not Show Focused State when using Keyboard Navigation", function() {