]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Resume focus test based on the event, not the callback.
authorScott González <scott.gonzalez@gmail.com>
Tue, 8 Jan 2013 12:54:11 +0000 (07:54 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 8 Jan 2013 12:54:11 +0000 (07:54 -0500)
tests/unit/core/core.js

index 86b95e157ddb840b96ea0e63119b99e91688c0c0..78a225338c9bce311180ef1998b43451b923f690 100644 (file)
@@ -19,10 +19,10 @@ asyncTest( "focus", function() {
        $( "#inputTabindex0" )
                .one( "focus", function() {
                        ok( true, "event triggered" );
+                       start();
                })
                .focus( 500, function() {
                        ok( true, "callback triggered" );
-                       start();
                });
 });