aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_core.js
blob: 7d9074819286aed01d9d1ad318c9589074445cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * tabs_core.js
 */
var el;

(function($) {

module("tabs: core");

test('navigation markup', function() {
	el = $('#tabs3').tabs();
	ok($('#tabs3-list').hasClass('ui-tabs-nav'), 'custom markup; allow list to be any descendant');
	el.tabs('destroy');

	el = $('#tabs4').tabs();
	ok($('#tabs4-list').hasClass('ui-tabs-nav'), 'first list found becomes nav - ul');
	el.tabs('destroy');

	el = $('#tabs4a').tabs();
	ok($('#tabs4a-list').hasClass('ui-tabs-nav'), 'first list found becomes nav - ol');
	el.tabs('destroy');

	el = $('#tabs5').tabs();
	ok($('#tabs5-list').hasClass('ui-tabs-nav'), 'empty list can be used');
	el.tabs('destroy');
});

})(jQuery);