Skip to content

Commit

Permalink
Tabs: Added test for abort method. Fixes #7133 - Tabs: Deprecate abor…
Browse files Browse the repository at this point in the history
…t method.
  • Loading branch information
scottgonzalez committed May 9, 2011
1 parent 9ea6db6 commit f53d117
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/unit/tabs/tabs_deprecated.js
Expand Up @@ -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 ) );

0 comments on commit f53d117

Please sign in to comment.