Skip to content
Permalink
Browse files

Tooltip: Allow tracking tooltips to be off by a fraciton of a pixel

Closes gh-1718
  • Loading branch information
scottgonzalez committed Jul 6, 2016
1 parent dc8b1c8 commit 92451b44c1ccdb4aa30f3c5418206abc1f0ff5de
Showing with 10 additions and 2 deletions.
  1. +10 −2 tests/unit/tooltip/options.js
@@ -203,8 +203,16 @@ QUnit.test( "track + show delay", function( assert ) {
event.pageY = topVal;
element.trigger( event );

assert.equal( $( ".ui-tooltip" ).css( "left" ), leftVal + offsetVal + "px" );
assert.equal( $( ".ui-tooltip" ).css( "top" ), topVal + offsetVal + "px" );
assert.close(
parseFloat( $( ".ui-tooltip" ).css( "left" ) ),
leftVal + offsetVal, 0.5,
"left position"
);
assert.close(
parseFloat( $( ".ui-tooltip" ).css( "top" ) ),
topVal + offsetVal, 0.5,
"top position"
);
} );

QUnit.test( "track and programmatic focus", function( assert ) {

0 comments on commit 92451b4

Please sign in to comment.
You can’t perform that action at this time.