diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-11-09 13:28:13 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-11-09 13:28:13 -0500 |
commit | f5870712c1f73c474a6980bb16d12768f4150984 (patch) | |
tree | 908c260e0e03ac398cbc1398606e73221058ee2b /tests/unit/tabs | |
parent | 498aadf644ddca86de838dc2001267ded972df2c (diff) | |
download | jquery-ui-f5870712c1f73c474a6980bb16d12768f4150984.tar.gz jquery-ui-f5870712c1f73c474a6980bb16d12768f4150984.zip |
Updated all widgets to use proper data keys when getting plugin instances.
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r-- | tests/unit/tabs/tabs_core.js | 6 | ||||
-rw-r--r-- | tests/unit/tabs/tabs_options.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/tabs/tabs_core.js b/tests/unit/tabs/tabs_core.js index 6307c4488..20364a37d 100644 --- a/tests/unit/tabs/tabs_core.js +++ b/tests/unit/tabs/tabs_core.js @@ -33,7 +33,7 @@ test( "nested list", function() { expect( 1 ); var element = $( "#tabs6" ).tabs(); - equal( element.data( "tabs" ).anchors.length, 2, "should contain 2 tab" ); + equal( element.data( "ui-tabs" ).anchors.length, 2, "should contain 2 tab" ); }); test( "disconnected from DOM", function() { @@ -155,7 +155,7 @@ asyncTest( "keyboard support - LEFT, RIGHT, UP, DOWN, HOME, END, SPACE, ENTER", panels = element.find( ".ui-tabs-panel" ), keyCode = $.ui.keyCode; - element.data( "tabs" ).delay = 50; + element.data( "ui-tabs" ).delay = 50; equal( tabs.filter( ".ui-state-focus" ).length, 0, "no tabs focused on init" ); tabs.eq( 0 ).simulate( "focus" ); @@ -306,7 +306,7 @@ asyncTest( "keyboard support - CTRL navigation", function() { panels = element.find( ".ui-tabs-panel" ), keyCode = $.ui.keyCode; - element.data( "tabs" ).delay = 50; + element.data( "ui-tabs" ).delay = 50; equal( tabs.filter( ".ui-state-focus" ).length, 0, "no tabs focused on init" ); tabs.eq( 0 ).simulate( "focus" ); diff --git a/tests/unit/tabs/tabs_options.js b/tests/unit/tabs/tabs_options.js index c320c9d46..f6e89e84f 100644 --- a/tests/unit/tabs/tabs_options.js +++ b/tests/unit/tabs/tabs_options.js @@ -290,7 +290,7 @@ test( "hide and show: false", function() { show: false, hide: false }), - widget = element.data( "tabs" ), + widget = element.data( "ui-tabs" ), panels = element.find( ".ui-tabs-panel" ); widget._show = function() { ok( false, "_show() called" ); @@ -311,7 +311,7 @@ asyncTest( "hide and show - animation", function() { show: "drop", hide: 2000 }), - widget = element.data( "tabs" ), + widget = element.data( "ui-tabs" ), panels = element.find( ".ui-tabs-panel" ); widget._show = function( element, options, callback ) { strictEqual( element[ 0 ], panels[ 1 ], "correct element in _show()" ); |