File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,12 @@ test( "enable/disable", function() {
59
59
$ . fx . off = false ;
60
60
} ) ;
61
61
62
- /*
63
- TODO currently tooltip doesn't override widget
64
- can't return anything useful if no element is kept around and there's no useful reference
65
- test("widget", function() {
66
- var tooltip = $("#tooltipped1").tooltip();
67
- deepEqual(tooltip.tooltip("widget")[0], $(".ui-tooltip")[0]);
68
- deepEqual(tooltip.tooltip("widget").end()[0], tooltip[0]);
62
+ test ( "widget" , function ( ) {
63
+ expect ( 2 ) ;
64
+ var element = $ ( "#tooltipped1" ) . tooltip ( ) ,
65
+ widgetElement = element . tooltip ( "widget" ) ;
66
+ equal ( widgetElement . length , 1 , "one element" ) ;
67
+ strictEqual ( widgetElement [ 0 ] , element [ 0 ] , "same element" ) ;
69
68
} ) ;
70
- */
71
69
72
70
} ( jQuery ) ) ;
You can’t perform that action at this time.
0 commit comments