aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-09 16:54:51 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-09 16:55:31 -0400
commitf53d11785339543de7878add5ff25476246fa0b8 (patch)
treeec6b47672f6c5b33565ac234b1a6e673fe034544 /tests/unit/tabs
parent9ea6db634f392b5432e03f893cd48a9c2e15cbb5 (diff)
downloadjquery-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.js14
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 ) );