Index: LayoutTests/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html |
diff --git a/LayoutTests/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html b/LayoutTests/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html |
index 9e6244713895a1950aa6d7b514b6cd5699cbf102..55648481beed85f1cde5ccd5fb279c5568f02d5e 100644 |
--- a/LayoutTests/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html |
+++ b/LayoutTests/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html |
@@ -18,14 +18,17 @@ function test() |
if (window.internals) |
internals.settings.setTouchDragDropEnabled(true); |
- document.ondragstart = function() { document.getElementById("dragResult").innerHTML = "PASS"; } |
- document.onmousedown = function() { document.getElementById("mouseDownResult").innerHTML = "FAIL"; } |
- |
var dragableDiv = document.getElementById("draggableDiv"); |
var x = draggableDiv.offsetParent.offsetLeft + draggableDiv.offsetLeft + 4; |
var y = draggableDiv.offsetParent.offsetTop + draggableDiv.offsetTop + draggableDiv.offsetHeight / 2; |
+ document.ondragstart = function(e) { |
+ if (e.x == x && e.y == y) |
+ document.getElementById("dragResult").innerHTML = "PASS"; |
+ }; |
+ document.onmousedown = function() { document.getElementById("mouseDownResult").innerHTML = "FAIL"; }; |
+ |
if (!window.eventSender) |
return; |
if (eventSender.gestureLongPress) { |