aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/core
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2014-02-21 13:22:39 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2014-02-21 19:57:34 +0100
commitdf6110c0d424ff3306fdd5576011f2dcf4d242d0 (patch)
treeccf0b23716deebd37e27578e01d5b9b1790d5a16 /tests/unit/core
parent1c278f97fca0aa1f3a473396e15c217419a99746 (diff)
downloadjquery-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')
-rw-r--r--tests/unit/core/core.js28
-rw-r--r--tests/unit/core/core_deprecated.js28
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" ),