aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-06-11 16:21:12 -0400
committerScott González <scott.gonzalez@gmail.com>2012-06-11 16:21:12 -0400
commit8c82edb40ca946f160089191d5bbe564159c7593 (patch)
treeba4aa1394c956c75ff1e9532d4282d676f3e9a6c /tests/unit
parent6752994014946ca6a8315c26d2179eb5b0fdd3a2 (diff)
downloadjquery-ui-8c82edb40ca946f160089191d5bbe564159c7593.tar.gz
jquery-ui-8c82edb40ca946f160089191d5bbe564159c7593.zip
Tabs tests: Don't call start directly from setTimeout because Firefox <13 is dumb.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/tabs/tabs_core.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/unit/tabs/tabs_core.js b/tests/unit/tabs/tabs_core.js
index b69ad406c..fd9cc7d63 100644
--- a/tests/unit/tabs/tabs_core.js
+++ b/tests/unit/tabs/tabs_core.js
@@ -269,7 +269,11 @@ asyncTest( "keyboard support - LEFT, RIGHT, UP, DOWN, HOME, END, SPACE, ENTER",
equal( panels.eq( 2 ).attr( "aria-expanded" ), "false", "third panel has aria-expanded=false" );
equal( panels.eq( 2 ).attr( "aria-hidden" ), "true", "third panel has aria-hidden=true" );
- setTimeout( start, 1 );
+ // support: Firefox 12
+ // Firefox <13 passes arguments so we can't use setTimeout( start, 1 )
+ setTimeout(function() {
+ start();
+ }, 1 );
}
setTimeout( step1, 1 );
@@ -462,7 +466,11 @@ asyncTest( "keyboard support - CTRL navigation", function() {
equal( panels.eq( 0 ).attr( "aria-expanded" ), "false", "first panel has aria-expanded=false" );
equal( panels.eq( 0 ).attr( "aria-hidden" ), "true", "first panel has aria-hidden=true" );
- setTimeout( start, 1 );
+ // support: Firefox 12
+ // Firefox <13 passes arguments so we can't use setTimeout( start, 1 )
+ setTimeout(function() {
+ start();
+ }, 1 );
}
setTimeout( step1, 1 );
@@ -554,7 +562,11 @@ asyncTest( "keyboard support - CTRL+UP, ALT+PAGE_DOWN, ALT+PAGE_UP", function()
panels.eq( 1 ).simulate( "keydown", { keyCode: keyCode.UP, ctrlKey: true } );
strictEqual( document.activeElement, tabs[ 1 ], "second tab is activeElement" );
- setTimeout( start, 1 );
+ // support: Firefox 12
+ // Firefox <13 passes arguments so we can't use setTimeout( start, 1 )
+ setTimeout(function() {
+ start();
+ }, 1 );
}
setTimeout( step1, 1 );