From: Mike Sherov Date: Thu, 27 Dec 2012 15:39:14 +0000 (-0500) Subject: Draggable Tests: Fix IE7 offset failures X-Git-Tag: 1.10.0-rc.1~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1045d3a3522b06b617d912432b0da62138ea0fc3;p=jquery-ui.git Draggable Tests: Fix IE7 offset failures --- diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index 46280ca17..36fcb731d 100644 --- a/tests/unit/draggable/draggable_options.js +++ b/tests/unit/draggable/draggable_options.js @@ -296,8 +296,8 @@ test( "{ cursorAt: left, top }", function() { cursorAt: testData.cursorAt, drag: function( event, ui ) { if( testData.cursorAt.right ) { - equal( ui.helper.width() - ( event.clientX - ui.offset.left ), testData.x + TestHelpers.draggable.unreliableOffset, testName + " " + position + " left" ); - equal( ui.helper.height() - ( event.clientY - ui.offset.top ), testData.y + TestHelpers.draggable.unreliableOffset, testName + position + " top" ); + equal( ui.helper.width() - ( event.clientX - ui.offset.left ), testData.x - TestHelpers.draggable.unreliableOffset, testName + " " + position + " left" ); + equal( ui.helper.height() - ( event.clientY - ui.offset.top ), testData.y - TestHelpers.draggable.unreliableOffset, testName + position + " top" ); } else { equal( event.clientX - ui.offset.left, testData.x + TestHelpers.draggable.unreliableOffset, testName + " " + position + " left" ); equal( event.clientY - ui.offset.top, testData.y + TestHelpers.draggable.unreliableOffset, testName + " " + position + " top" );