Skip to content

Commit f53d117

Browse files
committed
Tabs: Added test for abort method. Fixes #7133 - Tabs: Deprecate abort method.
1 parent 9ea6db6 commit f53d117

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/unit/tabs/tabs_deprecated.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,18 @@ test( "url", function() {
463463
element.tabs( "option", "active", 3 );
464464
});
465465

466-
test( "abort", function() {
467-
ok( false, "missing test - untested code is broken code." );
466+
asyncTest( "abort", function() {
467+
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" );
468478
});
469479

470480
}( jQuery ) );

0 commit comments

Comments
 (0)