From: Mike Sherov Date: Thu, 21 Aug 2014 01:10:33 +0000 (-0400) Subject: Draggable Tests: Fix failures due to fractional widths X-Git-Tag: 1.11.2~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cedf91c0a9d2cf75f0907b9e098eacc6f1ba0891;p=jquery-ui.git Draggable Tests: Fix failures due to fractional widths --- 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" ); });