Skip to content

Commit 168ab66

Browse files
committed
Tabs: Updated test for deprecated length method.
1 parent 7aad37b commit 168ab66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/tabs/tabs_deprecated.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,11 @@ test('#5069 - ui.tabs.add creates two tab panels when using a full URL', functio
319319
equals(el.children('div').length, el.find('> ul > li').length, 'After add, number of panels should be equal to number of tabs');
320320
});
321321

322-
test('length', function() {
323-
expect(1);
322+
test( "length", function() {
323+
expect( 2 );
324324

325-
el = $('#tabs1').tabs();
326-
equals(el.tabs('length'), $('ul a', el).length, ' should return length');
325+
equals( $( "#tabs1" ).tabs().tabs( "length" ), 3, "basic tabs" );
326+
equals( $( "#tabs2" ).tabs().tabs( "length" ), 4, "ajax tabs with missing panels" );
327327
});
328328

329329
test('url', function() {

0 commit comments

Comments
 (0)