aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_options.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-04-05 16:53:52 -0400
committerScott González <scott.gonzalez@gmail.com>2011-04-05 16:53:52 -0400
commit7aad37bfd55563a34e031309285e58468cfc2aa6 (patch)
treeaf01f5b4ce0e5b90c14aa63a0fb16d75752aad7b /tests/unit/tabs/tabs_options.js
parentff84d58444019268594b6ab11b32ed2e2a31926d (diff)
downloadjquery-ui-7aad37bfd55563a34e031309285e58468cfc2aa6.tar.gz
jquery-ui-7aad37bfd55563a34e031309285e58468cfc2aa6.zip
Tabs: Better handling of active option and various cleanup.
Diffstat (limited to 'tests/unit/tabs/tabs_options.js')
-rw-r--r--tests/unit/tabs/tabs_options.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/tabs/tabs_options.js b/tests/unit/tabs/tabs_options.js
index 98cd3b4ca..49c77521e 100644
--- a/tests/unit/tabs/tabs_options.js
+++ b/tests/unit/tabs/tabs_options.js
@@ -53,14 +53,14 @@ test('active', function() {
equals(el.tabs('option', 'active'), 0, 'should be 0 by default');
el.tabs('destroy');
- el.tabs({ active: -1 });
- equals(el.tabs('option', 'active'), -1, 'should be -1 for all tabs deactive');
+ el.tabs({ active: false });
+ equals(el.tabs('option', 'active'), false, 'should be false for all tabs deactive');
equals( $('li.ui-tabs-selected', el).length, 0, 'no tab should be active' );
equals( $('div:hidden', '#tabs1').length, 3, 'all panels should be hidden' );
el.tabs('destroy');
el.tabs({ active: null });
- equals(el.tabs('option', 'active'), -1, 'should be -1 for all tabs deactive with value null (deprecated)');
+ equals(el.tabs('option', 'active'), false, 'should be false for all tabs deactive with value null (deprecated)');
el.tabs('destroy');
el.tabs({ active: 1 });