mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Tabs: Added test for abort method. Fixes #7133 - Tabs: Deprecate abort method.
This commit is contained in:
parent
9ea6db634f
commit
f53d117853
@ -463,8 +463,18 @@ test( "url", function() {
|
||||
element.tabs( "option", "active", 3 );
|
||||
});
|
||||
|
||||
test( "abort", function() {
|
||||
ok( false, "missing test - untested code is broken code." );
|
||||
asyncTest( "abort", function() {
|
||||
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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user