Skip to content
Permalink
Browse files

Tabs: Added test for ajaxOptions. Partial fix for #7131 - Tabs: Add b…

…eforeload event; deprecate ajaxOptions and cache options.

Thanks gnarf for the unit test idea.
  • Loading branch information...
scottgonzalez committed May 9, 2011
1 parent f1180e5 commit 9549686cb35b877740aca388286d71ad04311a2d
Showing with 21 additions and 2 deletions.
  1. +21 −2 tests/unit/tabs/tabs_deprecated.js
@@ -22,8 +22,23 @@ test( "panel ids", function() {

module( "tabs (deprecated): options" );

test('ajaxOptions', function() {
ok(false, "missing test - untested code is broken code.");
asyncTest( "ajaxOptions", function() {
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() {
@@ -419,4 +434,8 @@ test( "url", function() {
element.tabs( "option", "active", 3 );
});

test( "abort", function() {
ok( false, "missing test - untested code is broken code." );
});

}( jQuery ) );

0 comments on commit 9549686

Please sign in to comment.
You can’t perform that action at this time.