We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99068b commit 8fa9ed7Copy full SHA for 8fa9ed7
tests/unit/tabs/tabs_events.js
@@ -6,7 +6,18 @@
6
module("tabs: events");
7
8
test('select', function() {
9
- ok(false, "missing test - untested code is broken code.");
+ expect(6);
10
+ el = $('#tabs1').tabs({
11
+ select: function(event, ui) {
12
+ ok(true, 'select triggered after initialization');
13
+ equals(this, el[0], "context of callback");
14
+ equals(event.type, 'tabsselect', 'event type in callback');
15
+ equals(ui.tab, el.find('a')[1], 'contain tab as DOM anchor element');
16
+ equals(ui.panel, el.find('div')[1], 'contain panel as DOM div element');
17
+ equals(ui.index, 1, 'contain index');
18
+ }
19
+ });
20
+ el.tabs('select', 1);
21
});
22
23
test('load', function() {
0 commit comments