]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable Tests: Fix failures due to fractional widths
authorMike Sherov <mike.sherov@gmail.com>
Thu, 21 Aug 2014 01:10:33 +0000 (21:10 -0400)
committerMike Sherov <mike.sherov@gmail.com>
Thu, 21 Aug 2014 01:10:33 +0000 (21:10 -0400)
tests/unit/draggable/draggable_core.js

index 4ea5e608a62b6d23108168a913594a73fa505ac3..def1526e5a49bd43c7c00e32256d2628844fc300 100644 (file)
@@ -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" );
 });