aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2014-08-20 21:10:33 -0400
committerMike Sherov <mike.sherov@gmail.com>2014-08-20 21:10:33 -0400
commitcedf91c0a9d2cf75f0907b9e098eacc6f1ba0891 (patch)
tree1925b4d79219191ce5c32a9cf7706574183697e5
parente12e3e12b19e226b90e4a0ec3848e400a80c8267 (diff)
downloadjquery-ui-cedf91c0a9d2cf75f0907b9e098eacc6f1ba0891.tar.gz
jquery-ui-cedf91c0a9d2cf75f0907b9e098eacc6f1ba0891.zip
Draggable Tests: Fix failures due to fractional widths
-rw-r--r--tests/unit/draggable/draggable_core.js4
1 files 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" );
});