diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:36:24 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:36:24 -0400 |
commit | 0429532ad10b0708e085c4830bb930d8457d62f4 (patch) | |
tree | dd83442abd8b5239f77d597088fba66f5cee8499 /tests | |
parent | 723d3e0040c46079cedf3998f4e28edfceed7c74 (diff) | |
download | jquery-ui-0429532ad10b0708e085c4830bb930d8457d62f4.tar.gz jquery-ui-0429532ad10b0708e085c4830bb930d8457d62f4.zip |
Tabs: Removed cookie option. Fixes #7162 - Tabs: Remove cookie option.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/tabs/tabs_common_deprecated.js | 1 | ||||
-rw-r--r-- | tests/unit/tabs/tabs_deprecated.html | 1 | ||||
-rw-r--r-- | tests/unit/tabs/tabs_deprecated.js | 35 |
3 files changed, 0 insertions, 37 deletions
diff --git a/tests/unit/tabs/tabs_common_deprecated.js b/tests/unit/tabs/tabs_common_deprecated.js index 8caff1ac5..72fecfbdd 100644 --- a/tests/unit/tabs/tabs_common_deprecated.js +++ b/tests/unit/tabs/tabs_common_deprecated.js @@ -2,7 +2,6 @@ TestHelpers.commonWidgetTests( "tabs", { defaults: { active: null, collapsible: false, - cookie: null, disabled: false, event: "click", heightStyle: "content", diff --git a/tests/unit/tabs/tabs_deprecated.html b/tests/unit/tabs/tabs_deprecated.html index 9d3ecef3a..3c476d0b4 100644 --- a/tests/unit/tabs/tabs_deprecated.html +++ b/tests/unit/tabs/tabs_deprecated.html @@ -5,7 +5,6 @@ <title>jQuery UI Tabs Test Suite</title> <script src="../../jquery.js"></script> - <script src="../../../external/jquery.cookie.js"></script> <link rel="stylesheet" href="../../../external/qunit.css"> <script src="../../../external/qunit.js"></script> <script src="../../jquery.simulate.js"></script> diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js index 49ad5c13e..b93417375 100644 --- a/tests/unit/tabs/tabs_deprecated.js +++ b/tests/unit/tabs/tabs_deprecated.js @@ -66,41 +66,6 @@ test( "tabTemplate + panelTemplate", function() { ok( element.find( "#new" ).hasClass( "customPanel" ), "panel custom class" ); }); -test( "cookie", function() { - expect( 6 ); - - var element = $( "#tabs1" ), - cookieName = "tabs_test", - cookieObj = { name: cookieName }; - $.cookie( cookieName, null ); - function cookie() { - return parseInt( $.cookie( cookieName ), 10 ); - } - - element.tabs({ cookie: cookieObj }); - equal( cookie(), 0, "initial cookie value" ); - - element.tabs( "destroy" ); - element.tabs({ active: 1, cookie: cookieObj }); - equal( cookie(), 1, "initial cookie value, from active property" ); - - element.tabs( "option", "active", 2 ); - equal( cookie(), 2, "cookie value updated after activating" ); - - element.tabs( "destroy" ); - $.cookie( cookieName, 1 ); - element.tabs({ cookie: cookieObj }); - equal( cookie(), 1, "initial cookie value, from existing cookie" ); - - element.tabs( "destroy" ); - element.tabs({ cookie: cookieObj, collapsible: true }); - element.tabs( "option", "active", false ); - equal( cookie(), -1, "cookie value for all tabs unselected" ); - - element.tabs( "destroy" ); - ok( $.cookie( cookieName ) === null, "erase cookie after destroy" ); -}); - asyncTest( "spinner", function() { expect( 2 ); |