From f1025298ccecb48f429a3a411e0ebd9b70fffa8b Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Mon, 17 Feb 2014 18:02:20 -0500 Subject: [PATCH] Draggable Tests: fix IE offset tests affected by focus issues. Calling element.focus() causes scroll in IE. In order to correctly test scroll behavior, we must rely on the actual calculated offset instead of the helper offset to ensure cross browser test consistency. --- tests/unit/draggable/draggable_test_helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/draggable/draggable_test_helpers.js b/tests/unit/draggable/draggable_test_helpers.js index 38da30806..e27adbffa 100644 --- a/tests/unit/draggable/draggable_test_helpers.js +++ b/tests/unit/draggable/draggable_test_helpers.js @@ -46,7 +46,7 @@ TestHelpers.draggable = { shouldMovePositionButNotOffset: function( el, msg, handle ) { handle = handle || el; TestHelpers.draggable.testDragPosition( el, 100, 100, 100, 100, msg ); - TestHelpers.draggable.testDragOffset( el, 100, 100, 0, 0, msg ); + TestHelpers.draggable.testDragHelperOffset( el, 100, 100, 0, 0, msg ); $( handle ).simulate( "drag", { dx: 100, -- 2.39.5