diff --git a/tests/unit/draggable/draggable_core.js b/tests/unit/draggable/draggable_core.js index 4ea5e608a..def1526e5 100644 --- a/tests/unit/draggable/draggable_core.js +++ b/tests/unit/draggable/draggable_core.js @@ -360,8 +360,8 @@ test( "setting right/bottom css shouldn't cause resize", function() { finalOffset.left += 50; finalOffset.top += 50; - equal( element.width(), origWidth, "element retains width" ); - equal( element.height(), origHeight, "element retains height" ); + closeEnough( element.width(), origWidth, 1, "element retains width" ); + closeEnough( element.height(), origHeight, 1, "element retains height" ); deepEqual( finalOffset, origOffset, "element moves the correct distance" ); });