diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:45:18 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:45:18 -0400 |
commit | fb525e1cb10ce5959df28b0cbd29ebdc96c266f4 (patch) | |
tree | 372dd9ef201e997ca8c54e93cd04ac47399106ec /tests/unit | |
parent | a1fd49fb2944a7dbe76e81ba648c2b56e7c6651d (diff) | |
download | jquery-ui-fb525e1cb10ce5959df28b0cbd29ebdc96c266f4.tar.gz jquery-ui-fb525e1cb10ce5959df28b0cbd29ebdc96c266f4.zip |
Tabs: Removed select event. Fixes #7154 - Tabs: Remove select event.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/tabs/tabs_common_deprecated.js | 3 | ||||
-rw-r--r-- | tests/unit/tabs/tabs_deprecated.js | 40 |
2 files changed, 1 insertions, 42 deletions
diff --git a/tests/unit/tabs/tabs_common_deprecated.js b/tests/unit/tabs/tabs_common_deprecated.js index 763e0d84e..0d381f9e9 100644 --- a/tests/unit/tabs/tabs_common_deprecated.js +++ b/tests/unit/tabs/tabs_common_deprecated.js @@ -19,7 +19,6 @@ TestHelpers.commonWidgetTests( "tabs", { beforeLoad: null, create: null, load: null, - remove: null, - select: null + remove: null } }); diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js index 5f91f1b52..10c86d254 100644 --- a/tests/unit/tabs/tabs_deprecated.js +++ b/tests/unit/tabs/tabs_deprecated.js @@ -198,46 +198,6 @@ asyncTest( "load", function() { } }); -test( "select", function() { - expect( 13 ); - - var element = $( "#tabs1" ).tabs({ - active: false, - collapsible: true - }), - anchors = element.find( ".ui-tabs-nav .ui-tabs-anchor" ), - panels = element.find( ".ui-tabs-panel" ); - - // from collapsed - element.one( "tabsselect", function( event, ui ) { - ok( !( "originalEvent" in event ), "originalEvent" ); - strictEqual( ui.tab, anchors[ 0 ], "ui.tab" ); - strictEqual( ui.panel, panels[ 0 ], "ui.panel" ); - equal( ui.index, 0, "ui.index" ); - state( element, 0, 0, 0 ); - }); - element.tabs( "option", "active", 0 ); - state( element, 1, 0, 0 ); - - // switching tabs - element.one( "tabsselect", function( event, ui ) { - equal( event.originalEvent.type, "click", "originalEvent" ); - strictEqual( ui.tab, anchors[ 1 ], "ui.tab" ); - strictEqual( ui.panel, panels[ 1 ], "ui.panel" ); - equal( ui.index, 1, "ui.index" ); - state( element, 1, 0, 0 ); - }); - anchors.eq( 1 ).click(); - state( element, 0, 1, 0 ); - - // collapsing - element.one( "tabsselect", function() { - ok( false, "collapsing" ); - }); - element.tabs( "option", "active", false ); - state( element, 0, 0, 0 ); -}); - module( "tabs (deprecated): methods" ); test( "add", function() { |