mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: added simple test for length method
This commit is contained in:
parent
c8360e619b
commit
bc967db6b2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user