]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs tests: Removed workaround for Firefox <13 passing values to setTimeout().
authorScott González <scott.gonzalez@gmail.com>
Fri, 27 Jul 2012 00:35:48 +0000 (20:35 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 27 Jul 2012 00:35:48 +0000 (20:35 -0400)
tests/unit/tabs/tabs_core.js

index f1a2d72c1a79195b3e1b531f72ff5d743d16df21..53dd50a98c78d60c51259b5a69a6731a504e1432 100644 (file)
@@ -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 );