| Index: third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js
|
| index d972b5a3f8dad5862a0c318738862da4462c6140..149a1d585dd1db49cd272a91b604c2c811376beb 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js
|
| @@ -1,8 +1,22 @@
|
| importAutomationScript('/pointerevents/pointerevent_common_input.js');
|
|
|
| -function inject_input() {
|
| - touchScrollUpInTarget('target0');
|
| - touchScrollLeftInTarget('target0');
|
| +function callback_function() {
|
| touchTapInTarget('btnComplete');
|
| }
|
|
|
| +function inject_input() {
|
| + var target = document.getElementById("target0");
|
| + var targetRect = target.getBoundingClientRect();
|
| +
|
| + var span = document.getElementsByTagName("span")[0];
|
| + var spanRect = span.getBoundingClientRect();
|
| +
|
| + var x = (spanRect.left - targetRect.left)/2;
|
| + touchScrollByPosition(x, targetRect.top + 100, 30, "down");
|
| + touchScrollByPosition(x, targetRect.top + 100, 30, "right");
|
| +
|
| + window.setTimeout(function() {
|
| + touchSmoothScrollUp(span);
|
| + touchSmoothScrollLeft(span, callback_function);
|
| + } , 6*scrollReturnInterval);
|
| +}
|
|
|