aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_deprecated.js
diff options
context:
space:
mode:
authorDavid Petersen <public@petersendidit.com>2011-03-26 16:49:14 -0400
committerDavid Petersen <public@petersendidit.com>2011-03-26 21:02:17 -0400
commit03eb54b37902db771accd3a53bad1b927c058bc7 (patch)
tree04547fbaf96f4a49aa9515501e274ce777dd5696 /tests/unit/tabs/tabs_deprecated.js
parente378876918361182e6cb6321159393828848b2c9 (diff)
downloadjquery-ui-03eb54b37902db771accd3a53bad1b927c058bc7.tar.gz
jquery-ui-03eb54b37902db771accd3a53bad1b927c058bc7.zip
Tabs: Deprecate the length method. Fixes #7143 Tabs: Deprecate the length method
Diffstat (limited to 'tests/unit/tabs/tabs_deprecated.js')
-rw-r--r--tests/unit/tabs/tabs_deprecated.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js
index b385a33c2..880ea075e 100644
--- a/tests/unit/tabs/tabs_deprecated.js
+++ b/tests/unit/tabs/tabs_deprecated.js
@@ -139,7 +139,13 @@ test('#5069 - ui.tabs.add creates two tab panels when using a full URL', functio
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');
+});
+
+test('length', function() {
+ expect(1);
+ el = $('#tabs1').tabs();
+ equals(el.tabs('length'), $('ul a', el).length, ' should return length');
});
}( jQuery ) );