Skip to content
Permalink
Browse files

Tabs: added simple test for length method

  • Loading branch information
Klaus Hartl
Klaus Hartl committed Feb 1, 2009
1 parent c8360e6 commit bc967db6b20780ba592d217b8725d199684caa30
Showing with 9 additions and 1 deletion.
  1. +9 −1 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;
}

0 comments on commit bc967db

Please sign in to comment.
You can’t perform that action at this time.