aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-08-17 09:08:07 -0400
committerScott González <scott.gonzalez@gmail.com>2012-08-17 09:08:07 -0400
commitaf67883226954114ef4782f81d1b6360d6516ee9 (patch)
tree3fdf10c97a60dcd0ac05f7a80b4d6856f5c77b49 /tests/unit
parent536d112aa9f49513f73e9d152866a4f67660d183 (diff)
downloadjquery-ui-af67883226954114ef4782f81d1b6360d6516ee9.tar.gz
jquery-ui-af67883226954114ef4782f81d1b6360d6516ee9.zip
Tabs: Set ajaxOptions in intial $.ajax() call. Fixes #8504 - Ajax in Tabs not passing data in 1.9. beta 1.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/tabs/tabs_deprecated.js6
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();