Skip to content

Commit f102529

Browse files
committed
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.
1 parent 7017805 commit f102529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/draggable/draggable_test_helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ TestHelpers.draggable = {
4646
shouldMovePositionButNotOffset: function( el, msg, handle ) {
4747
handle = handle || el;
4848
TestHelpers.draggable.testDragPosition( el, 100, 100, 100, 100, msg );
49-
TestHelpers.draggable.testDragOffset( el, 100, 100, 0, 0, msg );
49+
TestHelpers.draggable.testDragHelperOffset( el, 100, 100, 0, 0, msg );
5050

5151
$( handle ).simulate( "drag", {
5252
dx: 100,

0 commit comments

Comments
 (0)