r1949 - trunk/tests/unit/tabs
Author: klaus.hartl
Date: Sun Feb 1 13:22:05 2009
New Revision: 1949
Modified:
trunk/tests/unit/tabs/tabs.js
Log:
Tabs: added simple test for length method
Modified: trunk/tests/unit/tabs/tabs.js
==============================================================================
--- trunk/tests/unit/tabs/tabs.js (original)
+++ trunk/tests/unit/tabs/tabs.js Sun Feb 1 13:22:05 2009
@@ -111,12 +111,20 @@
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;
}