aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-03 07:14:33 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-03 07:14:33 -0400
commit75f7a786ae27f27f39aa5a674aedd2913884163b (patch)
tree5b81c098aeead3abe87aee7a5a1c2d1256205e87 /tests/unit/tabs
parent92bcb2504f61427e5788d0777c5bcc784c32ad7a (diff)
downloadjquery-ui-75f7a786ae27f27f39aa5a674aedd2913884163b.tar.gz
jquery-ui-75f7a786ae27f27f39aa5a674aedd2913884163b.zip
Tabs: Clean up some tests.
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r--tests/unit/tabs/tabs_methods.js2
-rw-r--r--tests/unit/tabs/tabs_options.js4
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() {