From bfec28eb0d62148c94e358813ab66962dd566024 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 26 Jul 2012 20:35:48 -0400 Subject: [PATCH] Tabs tests: Removed workaround for Firefox <13 passing values to setTimeout(). --- tests/unit/tabs/tabs_core.js | 18 +++--------------- 1 file 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 ); -- 2.39.5