Skip to content

Commit

Permalink
Tabs tests: Removed workaround for Firefox <13 passing values to setT…
Browse files Browse the repository at this point in the history
…imeout().
  • Loading branch information
scottgonzalez committed Jul 27, 2012
1 parent 548d37b commit bfec28e
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions tests/unit/tabs/tabs_core.js
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit bfec28e

Please sign in to comment.