aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_methods.js
diff options
context:
space:
mode:
authorShahyar G <shahyar@gmail.com>2012-04-23 14:25:23 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-23 20:49:57 -0400
commitf3b022ddb8815974f52aeeddb79d209645041653 (patch)
tree372f5c6fd8bbd284d432c6b5bec22c0aca7894c0 /tests/unit/tabs/tabs_methods.js
parent9df981d268b4029065247cf230a4e988946b7799 (diff)
downloadjquery-ui-f3b022ddb8815974f52aeeddb79d209645041653.tar.gz
jquery-ui-f3b022ddb8815974f52aeeddb79d209645041653.zip
Use length property, instead of the deprecated size() method.
Diffstat (limited to 'tests/unit/tabs/tabs_methods.js')
-rw-r--r--tests/unit/tabs/tabs_methods.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/tabs/tabs_methods.js b/tests/unit/tabs/tabs_methods.js
index 61ce78189..0837995e6 100644
--- a/tests/unit/tabs/tabs_methods.js
+++ b/tests/unit/tabs/tabs_methods.js
@@ -161,9 +161,9 @@ asyncTest( "load", function() {
panel = $( "#" + panelId );
ok( !( "originalEvent" in event ), "originalEvent" );
- equal( ui.tab.size(), 1, "tab size" );
+ equal( ui.tab.length, 1, "tab length" );
strictEqual( ui.tab[ 0 ], tab[ 0 ], "tab" );
- equal( ui.panel.size(), 1, "panel size" );
+ equal( ui.panel.length, 1, "panel length" );
strictEqual( ui.panel[ 0 ], panel[ 0 ], "panel" );
state( element, 1, 0, 0, 0, 0 );
});
@@ -176,9 +176,9 @@ asyncTest( "load", function() {
panel = $( "#" + panelId );
ok( !( "originalEvent" in event ), "originalEvent" );
- equal( uiTab.size(), 1, "tab size" );
+ equal( uiTab.length, 1, "tab length" );
strictEqual( uiTab[ 0 ], tab[ 0 ], "tab" );
- equal( uiPanel.size(), 1, "panel size" );
+ equal( uiPanel.length, 1, "panel length" );
strictEqual( uiPanel[ 0 ], panel[ 0 ], "panel" );
equal( uiPanel.find( "p" ).length, 1, "panel html" );
state( element, 1, 0, 0, 0, 0 );
@@ -208,9 +208,9 @@ asyncTest( "load", function() {
panel = $( "#" + panelId );
ok( !( "originalEvent" in event ), "originalEvent" );
- equal( ui.tab.size(), 1, "tab size" );
+ equal( ui.tab.length, 1, "tab length" );
strictEqual( ui.tab[ 0 ], tab[ 0 ], "tab" );
- equal( ui.panel.size(), 1, "panel size" );
+ equal( ui.panel.length, 1, "panel length" );
strictEqual( ui.panel[ 0 ], panel[ 0 ], "panel" );
state( element, 0, 0, 0, 1, 0 );
});
@@ -223,9 +223,9 @@ asyncTest( "load", function() {
panel = $( "#" + panelId );
ok( !( "originalEvent" in event ), "originalEvent" );
- equal( uiTab.size(), 1, "tab size" );
+ equal( uiTab.length, 1, "tab length" );
strictEqual( uiTab[ 0 ], tab[ 0 ], "tab" );
- equal( uiPanel.size(), 1, "panel size" );
+ equal( uiPanel.length, 1, "panel length" );
strictEqual( uiPanel[ 0 ], panel[ 0 ], "panel" );
state( element, 0, 0, 0, 1, 0 );
start();