Core tests: Explicitly focus the body during delayed .focus() test to avoid an issue in IE 8.

(cherry picked from commit afeaf565bb)
This commit is contained in:
Scott González 2013-07-09 14:13:24 -04:00
parent 1aad398dba
commit d1b764b5f5

View File

@ -16,6 +16,12 @@ asyncTest( "focus - original functionality", function() {
asyncTest( "focus", function() {
expect( 2 );
// support: IE 8
// IE sometimes gets confused about what's focused if we don't explicitly
// focus a different element first
$( "body" ).focus();
$( "#inputTabindex0" )
.one( "focus", function() {
ok( true, "event triggered" );