Skip to content

Commit 2841541

Browse files
committed
Core tests: Handle async focus in IE.
1 parent 0f0ec00 commit 2841541

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/unit/core/core.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,23 @@ module( "core - jQuery extensions" );
44

55
TestHelpers.testJshint( "core" );
66

7-
test( "focus - original functionality", function() {
7+
asyncTest( "focus - original functionality", function() {
88
expect( 1 );
99
$( "#inputTabindex0" )
10-
.focus(function() {
10+
.one( "focus", function() {
1111
ok( true, "event triggered" );
12+
start();
1213
})
1314
.focus();
1415
});
1516

1617
asyncTest( "focus", function() {
1718
expect( 2 );
1819
$( "#inputTabindex0" )
19-
.focus(function() {
20+
.one( "focus", function() {
2021
ok( true, "event triggered" );
2122
})
2223
.focus( 500, function() {
23-
// prevent double focus event in IE
24-
$( this ).unbind( "focus" );
2524
ok( true, "callback triggered" );
2625
start();
2726
});

0 commit comments

Comments
 (0)