Skip to content

Commit cedf91c

Browse files
committed
Draggable Tests: Fix failures due to fractional widths
1 parent e12e3e1 commit cedf91c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/draggable/draggable_core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ test( "setting right/bottom css shouldn't cause resize", function() {
360360
finalOffset.left += 50;
361361
finalOffset.top += 50;
362362

363-
equal( element.width(), origWidth, "element retains width" );
364-
equal( element.height(), origHeight, "element retains height" );
363+
closeEnough( element.width(), origWidth, 1, "element retains width" );
364+
closeEnough( element.height(), origHeight, 1, "element retains height" );
365365
deepEqual( finalOffset, origOffset, "element moves the correct distance" );
366366
});
367367

0 commit comments

Comments
 (0)