From 75f7a786ae27f27f39aa5a674aedd2913884163b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 3 May 2011 07:14:33 -0400 Subject: [PATCH] Tabs: Clean up some tests. --- tests/unit/tabs/tabs_methods.js | 2 +- tests/unit/tabs/tabs_options.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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() { -- 2.39.5