diff options
author | dominiquevincent <dominique.vincent@toitl.com> | 2010-05-10 02:25:12 +0800 |
---|---|---|
committer | Richard D. Worth <rdworth@gmail.com> | 2010-05-10 16:36:13 +0800 |
commit | 4b36cce683eb6e21342ec9801c8d5f18a4502aea (patch) | |
tree | 9a1172c8d48e7093a08c6e9c2970fc5b01610276 /tests/unit | |
parent | 008def00bd565d0984c47cdd97d65e1c7bd73e04 (diff) | |
download | jquery-ui-4b36cce683eb6e21342ec9801c8d5f18a4502aea.tar.gz jquery-ui-4b36cce683eb6e21342ec9801c8d5f18a4502aea.zip |
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>
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/tabs/tabs_tickets.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/tabs/tabs_tickets.js b/tests/unit/tabs/tabs_tickets.js index 9874a1192..4d51e905d 100644 --- a/tests/unit/tabs/tabs_tickets.js +++ b/tests/unit/tabs/tabs_tickets.js @@ -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); |