diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-12-27 10:39:14 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-12-27 10:39:14 -0500 |
commit | 1045d3a3522b06b617d912432b0da62138ea0fc3 (patch) | |
tree | 7b2daec378c55ff02540c1253df02e73286599e4 /tests | |
parent | 04d668b7171e14292af9f4de1b6bfbbe1a6e990c (diff) | |
download | jquery-ui-1045d3a3522b06b617d912432b0da62138ea0fc3.tar.gz jquery-ui-1045d3a3522b06b617d912432b0da62138ea0fc3.zip |
Draggable Tests: Fix IE7 offset failures
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/draggable/draggable_options.js | 4 |
1 files changed, 2 insertions, 2 deletions
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" ); |