diff options
author | Klaus Hartl <klaus.hartl@googlemail.com> | 2009-02-01 21:22:05 +0000 |
---|---|---|
committer | Klaus Hartl <klaus.hartl@googlemail.com> | 2009-02-01 21:22:05 +0000 |
commit | bc967db6b20780ba592d217b8725d199684caa30 (patch) | |
tree | 98a250d53dced7092cd737a24ba791d15f8b2403 | |
parent | c8360e619b03235e5b7fc5272f0a6722707d2312 (diff) | |
download | jquery-ui-bc967db6b20780ba592d217b8725d199684caa30.tar.gz jquery-ui-bc967db6b20780ba592d217b8725d199684caa30.zip |
Tabs: added simple test for length method
-rw-r--r-- | tests/unit/tabs/tabs.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/unit/tabs/tabs.js b/tests/unit/tabs/tabs.js index 1ffa08bbf..6a4be9ed5 100644 --- a/tests/unit/tabs/tabs.js +++ b/tests/unit/tabs/tabs.js @@ -111,12 +111,20 @@ module('tabs'); expect(0); }); + + test('length', function() { + expect(1); + + el = $('#tabs1').tabs(); + equals(el.tabs('length'), $('ul a', el).length, ' should return length'); + + }); test('callback ui object', function() { expect(3); var uiObj; - $('#tabs1').tabs({ + el = $('#tabs1').tabs({ show: function(event, ui) { uiObj = ui; } |