aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-07-26 20:35:48 -0400
committerScott González <scott.gonzalez@gmail.com>2012-07-26 20:35:48 -0400
commitbfec28eb0d62148c94e358813ab66962dd566024 (patch)
tree421df5264061ebe6ccedda71a87919ffd0def246 /tests/unit
parent548d37bca15c998429f35957f2166577023320bf (diff)
downloadjquery-ui-bfec28eb0d62148c94e358813ab66962dd566024.tar.gz
jquery-ui-bfec28eb0d62148c94e358813ab66962dd566024.zip
Tabs tests: Removed workaround for Firefox <13 passing values to setTimeout().
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/tabs/tabs_core.js18
1 files changed, 3 insertions, 15 deletions
diff --git a/tests/unit/tabs/tabs_core.js b/tests/unit/tabs/tabs_core.js
index f1a2d72c1..53dd50a98 100644
--- a/tests/unit/tabs/tabs_core.js
+++ b/tests/unit/tabs/tabs_core.js
@@ -285,11 +285,7 @@ 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" );
- // support: Firefox 12
- // Firefox <13 passes arguments so we can't use setTimeout( start, 1 )
- setTimeout(function() {
- start();
- }, 1 );
+ setTimeout( start, 1 );
}
setTimeout( step1, 1 );
@@ -482,11 +478,7 @@ 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" );
- // support: Firefox 12
- // Firefox <13 passes arguments so we can't use setTimeout( start, 1 )
- setTimeout(function() {
- start();
- }, 1 );
+ setTimeout( start, 1 );
}
setTimeout( step1, 1 );
@@ -578,11 +570,7 @@ 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" );
- // support: Firefox 12
- // Firefox <13 passes arguments so we can't use setTimeout( start, 1 )
- setTimeout(function() {
- start();
- }, 1 );
+ setTimeout( start, 1 );
}
setTimeout( step1, 1 );