From cedf91c0a9d2cf75f0907b9e098eacc6f1ba0891 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Wed, 20 Aug 2014 21:10:33 -0400 Subject: [PATCH] Draggable Tests: Fix failures due to fractional widths --- tests/unit/draggable/draggable_core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ); }); -- 2.39.5