]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable Tests: Fix IE7 offset failures
authorMike Sherov <mike.sherov@gmail.com>
Thu, 27 Dec 2012 15:39:14 +0000 (10:39 -0500)
committerMike Sherov <mike.sherov@gmail.com>
Thu, 27 Dec 2012 15:39:14 +0000 (10:39 -0500)
tests/unit/draggable/draggable_options.js

index 46280ca17a7d2c1be6c952000b12104b2cfd1cc1..36fcb731d56cda0726ac22745f8c0ca1bfeb3768 100644 (file)
@@ -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" );