]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog tests: Work around focus issue in IE8.
authorScott González <scott.gonzalez@gmail.com>
Thu, 14 Nov 2013 15:32:09 +0000 (10:32 -0500)
committerScott González <scott.gonzalez@gmail.com>
Thu, 14 Nov 2013 15:32:09 +0000 (10:32 -0500)
tests/unit/dialog/dialog_methods.js

index 8918e8d36f0a66ea5e2f27e62862b6ee92313428..d315e5fc3dbbe873e8d7b8083af5d2dbdbf82733 100644 (file)
@@ -220,6 +220,11 @@ asyncTest( "#8958: dialog can be opened while opening", function() {
                }
        });
 
+       // Support: IE8
+       // For some reason the #favorite-color input doesn't get focus if we don't
+       // focus the body first, causing the test to hang.
+       $( "body" ).focus();
+
        $( "#favorite-animal" )
                // We focus the input to start the test. Once it receives focus, the
                // dialog will open. Opening the dialog, will cause an element inside