File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 2626 "DATA_POWERTIP" : false ,
2727 "DATA_POWERTIPJQ" : false ,
2828 "DATA_POWERTIPTARGET" : false ,
29+ "DATA_FORCEDOPEN" : false ,
2930 "session" : true ,
3031 "Collision" : false ,
3132
Original file line number Diff line number Diff line change @@ -98,6 +98,21 @@ $(function() {
9898 assert . ok ( showCalled , 'showTip called' ) ;
9999 } ) ;
100100
101+ QUnit . test ( 'show method adds the DATA_FORCEDOPEN flag when forceOpen is set to true' , function ( assert ) {
102+ var element = $ ( '<span />' ) ,
103+ dc ;
104+
105+ dc = new DisplayController (
106+ element ,
107+ $ . fn . powerTip . defaults ,
108+ new MockTipController ( )
109+ ) ;
110+
111+ dc . show ( true , true ) ;
112+
113+ assert . strictEqual ( element . data ( DATA_FORCEDOPEN ) , true , 'DATA_FORCEDOPEN is true' ) ;
114+ } ) ;
115+
101116 QUnit . test ( 'hide method does not delay when disableDelay is set to true' , function ( assert ) {
102117 var element = $ ( '<span />' ) ,
103118 hideCalled = false ,
You can’t perform that action at this time.
0 commit comments