aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_methods.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-07-16 20:20:28 -0400
committerScott González <scott.gonzalez@gmail.com>2010-07-16 20:20:28 -0400
commit7e03d4ea9deee68e928651ef80c6c673c479b88d (patch)
tree0a1ade66ba1b1a4783f9eace0110805c31fc58f6 /tests/unit/tabs/tabs_methods.js
parenteaddfedd668c3397ed3c39d733d57d9c78466633 (diff)
downloadjquery-ui-7e03d4ea9deee68e928651ef80c6c673c479b88d.tar.gz
jquery-ui-7e03d4ea9deee68e928651ef80c6c673c479b88d.zip
Tabs: Updated tests.
Diffstat (limited to 'tests/unit/tabs/tabs_methods.js')
-rw-r--r--tests/unit/tabs/tabs_methods.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/unit/tabs/tabs_methods.js b/tests/unit/tabs/tabs_methods.js
index 3eb627830..3812c3e91 100644
--- a/tests/unit/tabs/tabs_methods.js
+++ b/tests/unit/tabs/tabs_methods.js
@@ -97,7 +97,7 @@ test('remove', function() {
});
test('select', function() {
- expect(9);
+ expect(6);
el = $('#tabs1').tabs();
@@ -115,20 +115,11 @@ test('select', function() {
equals(el.tabs('option', 'selected'), -1, 'should collapse tab passing in -1');
el.tabs('destroy');
- el.tabs({ collapsible: true });
- el.tabs('select', null);
- equals(el.tabs('option', 'selected'), -1, 'should collapse tab passing in null (deprecated)');
- el.tabs('select', null);
- equals(el.tabs('option', 'selected'), -1, 'should not select tab passing in null a second time (deprecated)');
-
- el.tabs('destroy');
el.tabs();
el.tabs('select', 0);
equals(el.tabs('option', 'selected'), 0, 'should not collapse tab if collapsible is not set to true');
el.tabs('select', -1);
equals(el.tabs('option', 'selected'), 0, 'should not collapse tab if collapsible is not set to true');
- el.tabs('select', null);
- equals(el.tabs('option', 'selected'), 0, 'should not collapse tab if collapsible is not set to true');
el.tabs('select', '#fragment-2');
equals(el.tabs('option', 'selected'), 1, 'should select tab by id');