Skip to content

Commit ce5539f

Browse files
committed
Dialog tests: Work around focus issue in IE8.
1 parent 144268a commit ce5539f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/dialog/dialog_methods.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ asyncTest( "#8958: dialog can be opened while opening", function() {
220220
}
221221
});
222222

223+
// Support: IE8
224+
// For some reason the #favorite-color input doesn't get focus if we don't
225+
// focus the body first, causing the test to hang.
226+
$( "body" ).focus();
227+
223228
$( "#favorite-animal" )
224229
// We focus the input to start the test. Once it receives focus, the
225230
// dialog will open. Opening the dialog, will cause an element inside

0 commit comments

Comments
 (0)