We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc8b1c8 commit 92451b4Copy full SHA for 92451b4
tests/unit/tooltip/options.js
@@ -203,8 +203,16 @@ QUnit.test( "track + show delay", function( assert ) {
203
event.pageY = topVal;
204
element.trigger( event );
205
206
- assert.equal( $( ".ui-tooltip" ).css( "left" ), leftVal + offsetVal + "px" );
207
- assert.equal( $( ".ui-tooltip" ).css( "top" ), topVal + offsetVal + "px" );
+ assert.close(
+ parseFloat( $( ".ui-tooltip" ).css( "left" ) ),
208
+ leftVal + offsetVal, 0.5,
209
+ "left position"
210
+ );
211
212
+ parseFloat( $( ".ui-tooltip" ).css( "top" ) ),
213
+ topVal + offsetVal, 0.5,
214
+ "top position"
215
216
} );
217
218
QUnit.test( "track and programmatic focus", function( assert ) {
0 commit comments