diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/core/core.js | 28 | ||||
-rw-r--r-- | tests/unit/core/core_deprecated.js | 28 |
2 files changed, 28 insertions, 28 deletions
diff --git a/tests/unit/core/core.js b/tests/unit/core/core.js index acacfab9c..1b1dcbabf 100644 --- a/tests/unit/core/core.js +++ b/tests/unit/core/core.js @@ -4,34 +4,6 @@ module( "core - jQuery extensions" ); TestHelpers.testJshint( "core" ); -asyncTest( "focus - original functionality", function() { - expect( 1 ); - $( "#inputTabindex0" ) - .one( "focus", function() { - ok( true, "event triggered" ); - start(); - }) - .focus(); -}); - -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" ); - start(); - }) - .focus( 500, function() { - ok( true, "callback triggered" ); - }); -}); - test( "innerWidth - getter", function() { expect( 2 ); var el = $( "#dimensions" ); diff --git a/tests/unit/core/core_deprecated.js b/tests/unit/core/core_deprecated.js index bb06f77b2..f97b009a7 100644 --- a/tests/unit/core/core_deprecated.js +++ b/tests/unit/core/core_deprecated.js @@ -2,6 +2,34 @@ module( "core - deprecated" ); +asyncTest( "focus - original functionality", function() { + expect( 1 ); + $( "#inputTabindex0" ) + .one( "focus", function() { + ok( true, "event triggered" ); + start(); + }) + .focus(); +}); + +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" ); + start(); + }) + .focus( 500, function() { + ok( true, "callback triggered" ); + }); +}); + test( "zIndex", function() { expect( 7 ); var el = $( "#zIndexAutoWithParent" ), |