aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_options.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2013-03-19 16:53:35 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2013-03-19 16:53:35 +0100
commit90135b27f896506776f3ce9fdbd27c9e957b924a (patch)
tree11591919e5083e81b8288cb979eca7fbdf3e3dd6 /tests/unit/tabs/tabs_options.js
parent4fce29e9356d7cbe2ccbdc29a391603580e852de (diff)
downloadjquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.tar.gz
jquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.zip
Widget tests: Use instance method. Also replace a few instances of $.data in widget implementations.
Diffstat (limited to 'tests/unit/tabs/tabs_options.js')
-rw-r--r--tests/unit/tabs/tabs_options.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/tabs/tabs_options.js b/tests/unit/tabs/tabs_options.js
index 02a2fea34..51212b8f0 100644
--- a/tests/unit/tabs/tabs_options.js
+++ b/tests/unit/tabs/tabs_options.js
@@ -314,7 +314,7 @@ test( "hide and show: false", function() {
show: false,
hide: false
}),
- widget = element.data( "ui-tabs" ),
+ widget = element.tabs( "instance" ),
panels = element.find( ".ui-tabs-panel" );
widget._show = function() {
ok( false, "_show() called" );
@@ -335,7 +335,7 @@ asyncTest( "hide and show - animation", function() {
show: "drop",
hide: 2000
}),
- widget = element.data( "ui-tabs" ),
+ widget = element.tabs( "instance" ),
panels = element.find( ".ui-tabs-panel" );
widget._show = function( element, options, callback ) {
strictEqual( element[ 0 ], panels[ 1 ], "correct element in _show()" );