Skip to content
Permalink
Browse files

Core tests: Explicitly focus the body during delayed .focus() test to…

… avoid an issue in IE 8.
  • Loading branch information
scottgonzalez committed Jul 9, 2013
1 parent 382a775 commit afeaf565bb0b91c399603a0ddd82a925cabef6aa
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/unit/core/core.js
@@ -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" );

0 comments on commit afeaf56

Please sign in to comment.
You can’t perform that action at this time.