File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,23 @@ test( "panel ids", function() {
22
22
23
23
module ( "tabs (deprecated): options" ) ;
24
24
25
- test ( 'ajaxOptions' , function ( ) {
26
- ok ( false , "missing test - untested code is broken code." ) ;
25
+ asyncTest ( "ajaxOptions" , function ( ) {
26
+ expect ( 1 ) ;
27
+
28
+ var element = $ ( "#tabs2" ) . tabs ( {
29
+ ajaxOptions : {
30
+ converters : {
31
+ "text html" : function ( ) {
32
+ return "test" ;
33
+ }
34
+ }
35
+ }
36
+ } ) ;
37
+ element . one ( "tabsload" , function ( event , ui ) {
38
+ equals ( ui . panel . html ( ) , "test" ) ;
39
+ start ( ) ;
40
+ } ) ;
41
+ element . tabs ( "option" , "active" , 2 ) ;
27
42
} ) ;
28
43
29
44
test ( 'cache' , function ( ) {
@@ -419,4 +434,8 @@ test( "url", function() {
419
434
element . tabs ( "option" , "active" , 3 ) ;
420
435
} ) ;
421
436
437
+ test ( "abort" , function ( ) {
438
+ ok ( false , "missing test - untested code is broken code." ) ;
439
+ } ) ;
440
+
422
441
} ( jQuery ) ) ;
You can’t perform that action at this time.
0 commit comments