Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Core tests: Handle async focus in IE.

  • Loading branch information...
commit 2841541362fe121977181888c3181676f0b796e4 1 parent 0f0ec00
@scottgonzalez scottgonzalez authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 tests/unit/core/core.js
View
9 tests/unit/core/core.js
@@ -4,11 +4,12 @@ module( "core - jQuery extensions" );
TestHelpers.testJshint( "core" );
-test( "focus - original functionality", function() {
+asyncTest( "focus - original functionality", function() {
expect( 1 );
$( "#inputTabindex0" )
- .focus(function() {
+ .one( "focus", function() {
ok( true, "event triggered" );
+ start();
})
.focus();
});
@@ -16,12 +17,10 @@ test( "focus - original functionality", function() {
asyncTest( "focus", function() {
expect( 2 );
$( "#inputTabindex0" )
- .focus(function() {
+ .one( "focus", function() {
ok( true, "event triggered" );
})
.focus( 500, function() {
- // prevent double focus event in IE
- $( this ).unbind( "focus" );
ok( true, "callback triggered" );
start();
});
Please sign in to comment.
Something went wrong with that request. Please try again.