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