mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tooltip: Allow tracking tooltips to be off by a fraciton of a pixel
Closes gh-1718
This commit is contained in:
parent
dc8b1c8bb9
commit
92451b44c1
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user