From: Scott González Date: Tue, 3 May 2011 11:14:33 +0000 (-0400) Subject: Tabs: Clean up some tests. X-Git-Tag: 1.9m5~102 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=75f7a786ae27f27f39aa5a674aedd2913884163b;p=jquery-ui.git Tabs: Clean up some tests. --- diff --git a/tests/unit/tabs/tabs_methods.js b/tests/unit/tabs/tabs_methods.js index 361ace45b..a6e60a4b3 100644 --- a/tests/unit/tabs/tabs_methods.js +++ b/tests/unit/tabs/tabs_methods.js @@ -85,7 +85,7 @@ test( "disable( index )", function() { tabs_disabled( element, true ); }); -test( "refersh", function() { +test( "refresh", function() { expect( 27 ); var element = $( "#tabs1" ).tabs(); diff --git a/tests/unit/tabs/tabs_options.js b/tests/unit/tabs/tabs_options.js index 884a566c6..691186276 100644 --- a/tests/unit/tabs/tabs_options.js +++ b/tests/unit/tabs/tabs_options.js @@ -15,6 +15,7 @@ test( "{ active: default }", function() { equals( element.tabs( "option", "active" ), 2, "should be 2 based on URL" ); tabs_state( element, 0, 0, 1 ); element.tabs( "destroy" ); + location.hash = "#"; }); test( "{ active: false }", function() { @@ -92,7 +93,8 @@ test( "active - mismatched tab/panel order", function() { equals( element.tabs( "option", "active" ), 1, "should be 1 based on URL" ); tabs_state( element, 0, 1 ); element.tabs( "option", "active", 0 ); - tabs_state( element, 1, 0 ); + tabs_state( element, 1, 0 ); + location.hash = "#"; }); test( "{ collapsible: false }", function() {