From 52a184e31c0ca5618e6d4873625bf3b7716944b3 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 25 Oct 2012 05:27:33 -0400 Subject: Tabs: Removed ajaxOptions and cache options. Fixes #7147 - Tabs: Remove ajaxOptions and cache options. --- tests/unit/tabs/tabs_common_deprecated.js | 2 -- tests/unit/tabs/tabs_deprecated.js | 53 ------------------------------- 2 files changed, 55 deletions(-) (limited to 'tests/unit/tabs') diff --git a/tests/unit/tabs/tabs_common_deprecated.js b/tests/unit/tabs/tabs_common_deprecated.js index 5b41014da..040e8cbf2 100644 --- a/tests/unit/tabs/tabs_common_deprecated.js +++ b/tests/unit/tabs/tabs_common_deprecated.js @@ -1,8 +1,6 @@ TestHelpers.commonWidgetTests( "tabs", { defaults: { active: null, - ajaxOptions: null, - cache: false, collapsible: false, cookie: null, disabled: false, diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js index 297a4546e..b3db097b9 100644 --- a/tests/unit/tabs/tabs_deprecated.js +++ b/tests/unit/tabs/tabs_deprecated.js @@ -24,59 +24,6 @@ test( "panel ids", function() { module( "tabs (deprecated): options" ); -asyncTest( "ajaxOptions", function() { - expect( 2 ); - - var element = $( "#tabs2" ).tabs({ - ajaxOptions: { - data: "foo=bar", - converters: { - "text html": function() { - return "test"; - } - } - } - }); - element.one( "tabsbeforeload", function( event, ui ) { - equal( ui.ajaxSettings.url.replace( /^[^\?]+/, "" ), "?foo=bar", "ajaxOptions.data" ); - }); - element.one( "tabsload", function( event, ui ) { - equal( $( ui.panel ).html(), "test" ); - start(); - }); - element.tabs( "option", "active", 2 ); -}); - -asyncTest( "cache", function() { - expect( 5 ); - - var element = $( "#tabs2" ).tabs({ - cache: true - }); - element.one( "tabsshow", function() { - state( element, 0, 0, 1, 0, 0 ); - }); - element.one( "tabsload", function() { - ok( true, "tabsload" ); - - setTimeout(function() { - element.tabs( "option", "active", 0 ); - state( element, 1, 0, 0, 0, 0 ); - - element.one( "tabsshow", function() { - state( element, 0, 0, 1, 0, 0 ); - }); - element.one( "tabsload", function() { - ok( false, "should be cached" ); - }); - element.tabs( "option", "active", 2 ); - start(); - }, 1 ); - }); - element.tabs( "option", "active", 2 ); - state( element, 0, 0, 1, 0, 0 ); -}); - test( "idPrefix", function() { expect( 1 ); -- cgit v1.2.3