Skip to content

Commit

Permalink
Tabs: unit test to verify that number of panels is equal to number of…
Browse files Browse the repository at this point in the history
… tabs.

Ticket #5069 - tabs: ui.tabs.add creates two tab panels when using a full URL

Signed-off-by: dominiquevincent <dominique.vincent@toitl.com>
  • Loading branch information
dominiquevincent authored and rdworth committed May 10, 2010
1 parent 008def0 commit 4b36cce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit/tabs/tabs_tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,16 @@ test('#4033 - IE expands hash to full url and misinterprets tab as ajax', functi

});

test('#5069 - ui.tabs.add creates two tab panels when using a full URL', function() {
// http://dev.jqueryui.com/ticket/5069
expect(2);

el = $('#tabs2').tabs();
equals(el.children('div').length, el.find('> ul > li').length, 'After creation, number of panels should be equal to number of tabs');
el.tabs('add', '/ajax_html_echo', 'Test');
equals(el.children('div').length, el.find('> ul > li').length, 'After add, number of panels should be equal to number of tabs');

});


})(jQuery);

0 comments on commit 4b36cce

Please sign in to comment.