aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorph-ausseil <ph.ausseil@gmail.com>2010-08-11 23:06:41 -0400
committerScott González <scott.gonzalez@gmail.com>2010-08-11 23:06:41 -0400
commit03eea0e39dc15b5fc8c811461dd7c08b9e09f660 (patch)
tree82bdfee30524ad732c6453692c34b6b92f528e5c /tests/unit
parent2398f6d23a477dec6bcda364b93e2055bbae7864 (diff)
downloadjquery-ui-03eea0e39dc15b5fc8c811461dd7c08b9e09f660.tar.gz
jquery-ui-03eea0e39dc15b5fc8c811461dd7c08b9e09f660.zip
Tabs: Ignore sublists. Fixes #5893 - Tabs: ability to contain sublists.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/tabs/tabs.html13
-rw-r--r--tests/unit/tabs/tabs_tickets.js10
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/unit/tabs/tabs.html b/tests/unit/tabs/tabs.html
index 211237569..b00c8df03 100644
--- a/tests/unit/tabs/tabs.html
+++ b/tests/unit/tabs/tabs.html
@@ -93,6 +93,19 @@
<ul id="tabs5-list"></ul>
</div>
</div>
+ <div id="tabs6">
+ <ul id="tabs6-list">
+ <li><a href="#tabs6-1">1</a>
+ <ul>
+ <li><a href="#item6-3">3</a></li>
+ <li><a href="#item6-4">4</a></li>
+ </ul>
+ </li>
+ <li><a href="#tabs6-2">2</a></li>
+ </ul>
+ <div id="tabs6-1"></div>
+ <div id="tabs6-2"></div>
+ </div>
</div>
</body>
</html>
diff --git a/tests/unit/tabs/tabs_tickets.js b/tests/unit/tabs/tabs_tickets.js
index 4d51e905d..475579c89 100644
--- a/tests/unit/tabs/tabs_tickets.js
+++ b/tests/unit/tabs/tabs_tickets.js
@@ -71,4 +71,14 @@ test('#5069 - ui.tabs.add creates two tab panels when using a full URL', functio
});
+test('#5893 - Sublist in the tab list are considered as tab', function() {
+ // http://dev.jqueryui.com/ticket/5893
+ expect(1);
+
+ el = $('#tabs6').tabs();
+ equals(el.tabs( "length" ), 2, 'should contain 2 tab');
+
+});
+
+
})(jQuery);