Skip to content
Permalink
Browse files

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.
  • Loading branch information
mikesherov committed Feb 18, 2014
1 parent 7017805 commit f1025298ccecb48f429a3a411e0ebd9b70fffa8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,

0 comments on commit f102529

Please sign in to comment.
You can’t perform that action at this time.