Draggable Tests: Fix failures due to fractional widths

This commit is contained in:
Mike Sherov 2014-08-20 21:10:33 -04:00
parent e12e3e12b1
commit cedf91c0a9

View 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" );
});