mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
1aad398dba
commit
d1b764b5f5
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user