Skip to content

Commit 4b36cce

Browse files
dominiquevincentrdworth
authored andcommitted
Tabs: unit test to verify that number of panels is equal to number of tabs.
Ticket #5069 - tabs: ui.tabs.add creates two tab panels when using a full URL Signed-off-by: dominiquevincent <dominique.vincent@toitl.com>
1 parent 008def0 commit 4b36cce

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/unit/tabs/tabs_tickets.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,16 @@ test('#4033 - IE expands hash to full url and misinterprets tab as ajax', functi
5959

6060
});
6161

62+
test('#5069 - ui.tabs.add creates two tab panels when using a full URL', function() {
63+
// http://dev.jqueryui.com/ticket/5069
64+
expect(2);
65+
66+
el = $('#tabs2').tabs();
67+
equals(el.children('div').length, el.find('> ul > li').length, 'After creation, number of panels should be equal to number of tabs');
68+
el.tabs('add', '/ajax_html_echo', 'Test');
69+
equals(el.children('div').length, el.find('> ul > li').length, 'After add, number of panels should be equal to number of tabs');
70+
71+
});
72+
6273

6374
})(jQuery);

0 commit comments

Comments
 (0)