Skip to content

Commit cfdeab3

Browse files
committed
Dialog tests: Work around focus issue in IE8.
(cherry picked from commit ce5539f)
1 parent c34743b commit cfdeab3

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
@@ -205,6 +205,11 @@ asyncTest( "#8958: dialog can be opened while opening", function() {
205205
}
206206
});
207207

208+
// Support: IE8
209+
// For some reason the #favorite-color input doesn't get focus if we don't
210+
// focus the body first, causing the test to hang.
211+
$( "body" ).focus();
212+
208213
$( "#favorite-animal" )
209214
// We focus the input to start the test. Once it receives focus, the
210215
// dialog will open. Opening the dialog, will cause an element inside

0 commit comments

Comments
 (0)