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

This commit is contained in:
Richard Worth 2009-12-24 01:25:30 +00:00
parent b836174835
commit 50cbf9f60e

View File

@ -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() { test('disabled', function() {
ok(false, "missing test - untested code is broken code."); ok(false, "missing test - untested code is broken code.");
}); });