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 );
|
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 ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user