github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 553
    • 89
  • Source
  • Commits
  • Network (89)
  • Graphs
  • Tree: 4b36cce

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (18)
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

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>
dominiquevincent (author)
Sun May 09 11:25:12 -0700 2010
rdworth (committer)
Mon May 10 01:36:13 -0700 2010
commit  4b36cce683eb6e21342e
tree    9a1172c8d48e7093a08c
parent  008def00bd565d0984c4
M tests/unit/tabs/tabs_tickets.js 11 •••••
Txt tests/unit/tabs/tabs_tickets.js
  • View file @ 4b36cce
... ...
@@ -59,5 +59,16 @@ test('#4033 - IE expands hash to full url and misinterprets tab as ajax', functi
59 59
   
60 60
 });
61 61
 
  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
+
62 73
 
63 74
 })(jQuery);

0 notes on commit 4b36cce

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server