diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-09 16:54:51 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-09 16:55:31 -0400 |
commit | f53d11785339543de7878add5ff25476246fa0b8 (patch) | |
tree | ec6b47672f6c5b33565ac234b1a6e673fe034544 /tests/unit/tabs | |
parent | 9ea6db634f392b5432e03f893cd48a9c2e15cbb5 (diff) | |
download | jquery-ui-f53d11785339543de7878add5ff25476246fa0b8.tar.gz jquery-ui-f53d11785339543de7878add5ff25476246fa0b8.zip |
Tabs: Added test for abort method. Fixes #7133 - Tabs: Deprecate abort method.
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r-- | tests/unit/tabs/tabs_deprecated.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js index a9f1f032f..144825007 100644 --- a/tests/unit/tabs/tabs_deprecated.js +++ b/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 ) ); |