mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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.
This commit is contained in:
parent
7017805745
commit
f1025298cc
@ -46,7 +46,7 @@ TestHelpers.draggable = {
|
|||||||
shouldMovePositionButNotOffset: function( el, msg, handle ) {
|
shouldMovePositionButNotOffset: function( el, msg, handle ) {
|
||||||
handle = handle || el;
|
handle = handle || el;
|
||||||
TestHelpers.draggable.testDragPosition( el, 100, 100, 100, 100, msg );
|
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", {
|
$( handle ).simulate( "drag", {
|
||||||
dx: 100,
|
dx: 100,
|
||||||
|
Loading…
Reference in New Issue
Block a user