Skip to content
Permalink
Browse files

updated unit test for #4031 - Tabs: Remove deselectable option

  • Loading branch information
rdworth committed Dec 24, 2009
1 parent b836174 commit 50cbf9f60ee97dc716355c343eaf69846dd404c6
Showing with 0 additions and 16 deletions.
  1. +0 −16 tests/unit/tabs/tabs_options.js
@@ -63,22 +63,6 @@ test('cookie', function() {

});

// deprecated... shadows collapsible
test('deselectable (deprecated)', function() {
expect(4);

el = $('#tabs1');

el.tabs({ deselectable: true });
equals(el.tabs('option', 'collapsible'), true, 'option set');
ok(el.is('.ui-tabs-collapsible'), 'extra class "ui-tabs-collapsible" attached');
el.tabs('select', 0);
equals($('div.ui-tabs-hide', '#tabs1').length, 3, 'all panels should be hidden');
el.tabs('option', 'deselectable', false);
ok(el.is(':not(.ui-tabs-collapsible)'), 'extra class "ui-tabs-collapsible" not attached');

});

test('disabled', function() {
ok(false, "missing test - untested code is broken code.");
});

0 comments on commit 50cbf9f

Please sign in to comment.
You can’t perform that action at this time.