File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ <h2 id="qunit-userAgent"></h2>
43
43
< input title ="inputtitle ">
44
44
< span id ="multiple-describedby " aria-describedby ="fixture-span " title ="... "> aria-describedby</ span >
45
45
< span id ="fixture-span " title ="title-text "> span</ span >
46
- < span id ="contains-tooltipped "> < span id ="contained-tooltipped " title ="foobar "> baz</ span > </ span >
46
+ < span id ="contains-tooltipped " title =" parent " > < span id ="contained-tooltipped " title ="child "> baz</ span > </ span >
47
47
</ div >
48
48
49
49
</ div >
Original file line number Diff line number Diff line change @@ -57,4 +57,20 @@ test( "delegated removal", function() {
57
57
equal ( $ ( ".ui-tooltip" ) . length , 0 ) ;
58
58
} ) ;
59
59
60
+ test ( "nested tooltips" , function ( ) {
61
+ expect ( 2 ) ;
62
+
63
+ var child = $ ( "#contained-tooltipped" ) ,
64
+ parent = $ ( "#contains-tooltipped" ) . tooltip ( {
65
+ show : null ,
66
+ hide : null
67
+ } ) ;
68
+
69
+ parent . trigger ( "mouseover" ) ;
70
+ equal ( $ ( ".ui-tooltip:visible" ) . text ( ) , "parent" ) ;
71
+
72
+ child . trigger ( "mouseover" ) ;
73
+ equal ( $ ( ".ui-tooltip" ) . text ( ) , "child" ) ;
74
+ } ) ;
75
+
60
76
} ( jQuery ) ) ;
You can’t perform that action at this time.
0 commit comments