diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:27:33 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:27:33 -0400 |
commit | 52a184e31c0ca5618e6d4873625bf3b7716944b3 (patch) | |
tree | 39620359c8311c66b85771f34d0fe30318ffbb7d /tests/unit/tabs | |
parent | 974e5f81964bb2449a5554d1bac1c82beeee9067 (diff) | |
download | jquery-ui-52a184e31c0ca5618e6d4873625bf3b7716944b3.tar.gz jquery-ui-52a184e31c0ca5618e6d4873625bf3b7716944b3.zip |
Tabs: Removed ajaxOptions and cache options. Fixes #7147 - Tabs: Remove ajaxOptions and cache options.
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r-- | tests/unit/tabs/tabs_common_deprecated.js | 2 | ||||
-rw-r--r-- | tests/unit/tabs/tabs_deprecated.js | 53 |
2 files changed, 0 insertions, 55 deletions
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 ); |