aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs
diff options
context:
space:
mode:
authorKlaus Hartl <klaus.hartl@googlemail.com>2009-03-01 14:32:29 +0000
committerKlaus Hartl <klaus.hartl@googlemail.com>2009-03-01 14:32:29 +0000
commit240a588bce03e72ca48527f3f7887261f505999b (patch)
tree4397d8a816a8d3dc2214d95d323891ec18e5550f /tests/unit/tabs
parent676ea7f248c94d351325e8aeafed12b35630c76c (diff)
downloadjquery-ui-240a588bce03e72ca48527f3f7887261f505999b.tar.gz
jquery-ui-240a588bce03e72ca48527f3f7887261f505999b.zip
Tabs: few fixes required in destroy method, removed ol as tabifyable element
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r--tests/unit/tabs/tabs_methods.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/unit/tabs/tabs_methods.js b/tests/unit/tabs/tabs_methods.js
index dbfa9ee33..941a7b517 100644
--- a/tests/unit/tabs/tabs_methods.js
+++ b/tests/unit/tabs/tabs_methods.js
@@ -22,16 +22,18 @@ test('init', function() {
});
test('destroy', function() {
- expect(5);
+ expect(6);
- el = $('#tabs1').tabs();
+ el = $('#tabs1').tabs({ collapsible: true });
+ $('li:eq(2)', el).simulate('mouseover').find('a').focus();
el.tabs('destroy');
- ok( el.is(':not(.ui-tabs, .ui-widget, .ui-widget-content, .ui-corner-all)'), 'remove classes from container');
+ ok( el.is(':not(.ui-tabs, .ui-widget, .ui-widget-content, .ui-corner-all, .ui-tabs-collapsible)'), 'remove classes from container');
ok( $('ul', el).is(':not(.ui-tabs-nav, .ui-helper-reset, .ui-helper-clearfix, .ui-widget-header, .ui-corner-all)'), 'remove classes from list' );
ok( $('div:eq(1)', el).is(':not(.ui-tabs-panel, .ui-widget-content, .ui-corner-bottom, .ui-tabs-hide)'), 'remove classes to panel' );
ok( $('li:eq(0)', el).is(':not(.ui-tabs-selected, .ui-state-active, .ui-corner-top)'), 'remove classes from active li');
ok( $('li:eq(1)', el).is(':not(.ui-state-default, .ui-corner-top)'), 'remove classes from inactive li');
+ ok( $('li:eq(2)', el).is(':not(.ui-state-hover, .ui-state-focus)'), 'remove classes from mouseovered or focused li');
});
test('enable', function() {