Skip to content
Permalink
Browse files

Tabs: Added test for abort method. Fixes #7133 - Tabs: Deprecate abor…

…t method.
  • Loading branch information...
scottgonzalez committed May 9, 2011
1 parent 9ea6db6 commit f53d11785339543de7878add5ff25476246fa0b8
Showing with 12 additions and 2 deletions.
  1. +12 −2 tests/unit/tabs/tabs_deprecated.js
@@ -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.
You can’t perform that action at this time.