aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-04-05 20:07:27 -0400
committerScott González <scott.gonzalez@gmail.com>2011-04-05 20:07:27 -0400
commit168ab6656d71e6c21ffef7f058b5afa2893007a6 (patch)
tree563768e0557f6691be7747936c1cb292ff78a1d1 /tests
parent7aad37bfd55563a34e031309285e58468cfc2aa6 (diff)
downloadjquery-ui-168ab6656d71e6c21ffef7f058b5afa2893007a6.tar.gz
jquery-ui-168ab6656d71e6c21ffef7f058b5afa2893007a6.zip
Tabs: Updated test for deprecated length method.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/tabs/tabs_deprecated.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js
index 9c816734a..77bf645a6 100644
--- a/tests/unit/tabs/tabs_deprecated.js
+++ b/tests/unit/tabs/tabs_deprecated.js
@@ -319,11 +319,11 @@ test('#5069 - ui.tabs.add creates two tab panels when using a full URL', functio
equals(el.children('div').length, el.find('> ul > li').length, 'After add, number of panels should be equal to number of tabs');
});
-test('length', function() {
- expect(1);
+test( "length", function() {
+ expect( 2 );
- el = $('#tabs1').tabs();
- equals(el.tabs('length'), $('ul a', el).length, ' should return length');
+ equals( $( "#tabs1" ).tabs().tabs( "length" ), 3, "basic tabs" );
+ equals( $( "#tabs2" ).tabs().tabs( "length" ), 4, "ajax tabs with missing panels" );
});
test('url', function() {