We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea6db6 commit f53d117Copy full SHA for f53d117
tests/unit/tabs/tabs_deprecated.js
@@ -463,8 +463,18 @@ test( "url", function() {
463
element.tabs( "option", "active", 3 );
464
});
465
466
-test( "abort", function() {
467
- ok( false, "missing test - untested code is broken code." );
+asyncTest( "abort", function() {
+ expect( 1 );
468
+
469
+ var element = $( "#tabs2" ).tabs();
470
+ element.one( "tabsbeforeload", function( event, ui ) {
471
+ ui.jqXHR.error(function( jqXHR, status ) {
472
+ equals( status, "abort", "aborted" );
473
+ start();
474
+ });
475
476
+ element.tabs( "option", "active", 2 );
477
+ element.tabs( "abort" );
478
479
480
}( jQuery ) );
0 commit comments