| Index: third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-svg-test_touch-manual-automation.js
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-svg-test_touch-manual-automation.js b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-svg-test_touch-manual-automation.js
|
| index 752573d6787aa850bfc82df8126673cdbbfabfdd..7267018b81d3e0b84b8e84c1d4ff68e0b20bf3ac 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-svg-test_touch-manual-automation.js
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-svg-test_touch-manual-automation.js
|
| @@ -1,22 +1,15 @@
|
| importAutomationScript('/pointerevents/pointerevent_common_input.js');
|
|
|
| -function callback_function() {
|
| - touchTapInTarget('btnComplete');
|
| -}
|
| -
|
| function inject_input() {
|
| - var target = document.getElementById("target0");
|
| - var targetRect = target.getBoundingClientRect();
|
| -
|
| - var svg = document.getElementsByTagName("svg")[0];
|
| - var svgRect = svg.getBoundingClientRect();
|
| -
|
| - var x = (svgRect.left - targetRect.left)/2;
|
| - touchScrollByPosition(x, targetRect.top + 100, 30, "down");
|
| - touchScrollByPosition(x, targetRect.top + 100, 30, "right");
|
| -
|
| - window.setTimeout(function() {
|
| - touchSmoothScrollUp(svg);
|
| - touchSmoothScrollLeft(svg, callback_function);
|
| - } , 4*scrollReturnInterval);
|
| -}
|
| + return touchScrollInTarget('#target0', 'down').then(function() {
|
| + return touchScrollInTarget('#target0', 'right');
|
| + }).then(function() {
|
| + return delayPromise(4*scrollReturnInterval);
|
| + }).then(function() {
|
| + return touchScrollInTarget('#target0 > svg', 'down');
|
| + }).then(function() {
|
| + return touchScrollInTarget('#target0 > svg', 'right');
|
| + }).then(function() {
|
| + touchTapInTarget('#btnComplete');
|
| + });
|
| +}
|
|
|