diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/tabs/tabs_deprecated.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js index 351433348..4a938c078 100644 --- a/tests/unit/tabs/tabs_deprecated.js +++ b/tests/unit/tabs/tabs_deprecated.js @@ -25,10 +25,11 @@ test( "panel ids", function() { module( "tabs (deprecated): options" ); asyncTest( "ajaxOptions", function() { - expect( 1 ); + expect( 2 ); var element = $( "#tabs2" ).tabs({ ajaxOptions: { + data: "foo=bar", converters: { "text html": function() { return "test"; @@ -36,6 +37,9 @@ asyncTest( "ajaxOptions", function() { } } }); + 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(); |