File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,11 @@ <h2 id="qunit-userAgent"></h2>
3535< ol id ="qunit-tests ">
3636</ ol >
3737
38- < div id ="main " style =" position: absolute; top: -10000px; left: -10000px; ">
38+ < div id ="qunit-fixture ">
3939 < div >
4040 < a id ="tooltipped1 " href ="# " title ="anchortitle "> anchor</ a >
4141 < input title ="inputtitle " />
42+ < span data-tooltip ="text "> span</ span >
4243 </ div >
4344</ div >
4445
Original file line number Diff line number Diff line change @@ -11,7 +11,15 @@ module("tooltip: options", {
1111
1212
1313test ( "option: items" , function ( ) {
14- ok ( false , "missing items test" ) ;
14+ var event = $ . Event ( "mouseenter" ) ;
15+ event . target = $ ( "[data-tooltip]" ) ;
16+ $ ( "#qunit-fixture" ) . tooltip ( {
17+ items : "[data-tooltip]" ,
18+ content : function ( ) {
19+ return $ ( this ) . attr ( "data-tooltip" ) ;
20+ }
21+ } ) . tooltip ( "open" , event ) ;
22+ same ( $ ( ".ui-tooltip" ) . text ( ) , "text" ) ;
1523} ) ;
1624
1725test ( "content: default" , function ( ) {
You can’t perform that action at this time.
0 commit comments