Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Draggable Tests: Fix IE7 offset failures

  • Loading branch information...
commit 1045d3a3522b06b617d912432b0da62138ea0fc3 1 parent 04d668b
@mikesherov mikesherov authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/unit/draggable/draggable_options.js
View
4 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" );
Please sign in to comment.
Something went wrong with that request. Please try again.