]> 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)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 25 Nov 2013 14:53:51 +0000 (15:53 +0100)
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() {