mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable Tests: Fix failures due to fractional widths
This commit is contained in:
parent
e12e3e12b1
commit
cedf91c0a9
@ -360,8 +360,8 @@ test( "setting right/bottom css shouldn't cause resize", function() {
|
|||||||
finalOffset.left += 50;
|
finalOffset.left += 50;
|
||||||
finalOffset.top += 50;
|
finalOffset.top += 50;
|
||||||
|
|
||||||
equal( element.width(), origWidth, "element retains width" );
|
closeEnough( element.width(), origWidth, 1, "element retains width" );
|
||||||
equal( element.height(), origHeight, "element retains height" );
|
closeEnough( element.height(), origHeight, 1, "element retains height" );
|
||||||
deepEqual( finalOffset, origOffset, "element moves the correct distance" );
|
deepEqual( finalOffset, origOffset, "element moves the correct distance" );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user