Tabs: Added test for abort method. Fixes #7133 - Tabs: Deprecate abort method.

This commit is contained in:
Scott González 2011-05-09 16:54:51 -04:00
parent 9ea6db634f
commit f53d117853

View File

@ -463,8 +463,18 @@ test( "url", function() {
element.tabs( "option", "active", 3 ); element.tabs( "option", "active", 3 );
}); });
test( "abort", function() { asyncTest( "abort", function() {
ok( false, "missing test - untested code is broken code." ); expect( 1 );
var element = $( "#tabs2" ).tabs();
element.one( "tabsbeforeload", function( event, ui ) {
ui.jqXHR.error(function( jqXHR, status ) {
equals( status, "abort", "aborted" );
start();
});
});
element.tabs( "option", "active", 2 );
element.tabs( "abort" );
}); });
}( jQuery ) ); }( jQuery ) );