mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tabs: Added test for ajaxOptions. Partial fix for #7131 - Tabs: Add beforeload event; deprecate ajaxOptions and cache options.
Thanks gnarf for the unit test idea.
This commit is contained in:
parent
f1180e5341
commit
9549686cb3
@ -22,8 +22,23 @@ test( "panel ids", function() {
|
|||||||
|
|
||||||
module( "tabs (deprecated): options" );
|
module( "tabs (deprecated): options" );
|
||||||
|
|
||||||
test('ajaxOptions', function() {
|
asyncTest( "ajaxOptions", function() {
|
||||||
ok(false, "missing test - untested code is broken code.");
|
expect( 1 );
|
||||||
|
|
||||||
|
var element = $( "#tabs2" ).tabs({
|
||||||
|
ajaxOptions: {
|
||||||
|
converters: {
|
||||||
|
"text html": function() {
|
||||||
|
return "test";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
element.one( "tabsload", function( event, ui ) {
|
||||||
|
equals( ui.panel.html(), "test" );
|
||||||
|
start();
|
||||||
|
});
|
||||||
|
element.tabs( "option", "active", 2 );
|
||||||
});
|
});
|
||||||
|
|
||||||
test('cache', function() {
|
test('cache', function() {
|
||||||
@ -419,4 +434,8 @@ test( "url", function() {
|
|||||||
element.tabs( "option", "active", 3 );
|
element.tabs( "option", "active", 3 );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test( "abort", function() {
|
||||||
|
ok( false, "missing test - untested code is broken code." );
|
||||||
|
});
|
||||||
|
|
||||||
}( jQuery ) );
|
}( jQuery ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user