aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/core
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-07-09 14:13:24 -0400
committerScott González <scott.gonzalez@gmail.com>2013-07-09 14:13:24 -0400
commitafeaf565bb0b91c399603a0ddd82a925cabef6aa (patch)
tree2b03af5eb5275bcfe2a540fb55c62d8f1f16e039 /tests/unit/core
parent382a77502e8959d065a36677c869d895a3ca2cf6 (diff)
downloadjquery-ui-afeaf565bb0b91c399603a0ddd82a925cabef6aa.tar.gz
jquery-ui-afeaf565bb0b91c399603a0ddd82a925cabef6aa.zip
Core tests: Explicitly focus the body during delayed .focus() test to avoid an issue in IE 8.
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/core.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/core/core.js b/tests/unit/core/core.js
index 54d50d84e..acacfab9c 100644
--- a/tests/unit/core/core.js
+++ b/tests/unit/core/core.js
@@ -16,6 +16,12 @@ asyncTest( "focus - original functionality", function() {
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" );