diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2014-02-21 13:22:39 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2014-02-21 19:57:34 +0100 |
commit | df6110c0d424ff3306fdd5576011f2dcf4d242d0 (patch) | |
tree | ccf0b23716deebd37e27578e01d5b9b1790d5a16 /tests/unit/core/core.js | |
parent | 1c278f97fca0aa1f3a473396e15c217419a99746 (diff) | |
download | jquery-ui-df6110c0d424ff3306fdd5576011f2dcf4d242d0.tar.gz jquery-ui-df6110c0d424ff3306fdd5576011f2dcf4d242d0.zip |
Core: Deprecate .focus( n ), replace in dialog with explicit timeouts
Fixes #9646
Diffstat (limited to 'tests/unit/core/core.js')
-rw-r--r-- | tests/unit/core/core.js | 28 |
1 files changed, 0 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" ); |