Index: third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-table-test_touch-manual-automation.js |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-table-test_touch-manual-automation.js b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-table-test_touch-manual-automation.js |
index fe32faef42df9cc04c3040bcd8933aa55b7e2aa9..8dd406c19501d96be31e3d5a070e01298203c55e 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-table-test_touch-manual-automation.js |
+++ b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-table-test_touch-manual-automation.js |
@@ -1,15 +1,15 @@ |
importAutomationScript('/pointerevents/pointerevent_common_input.js'); |
function inject_input() { |
- touchScrollInTarget('row1', 'down'); |
- window.setTimeout(function() { |
- touchScrollInTarget('row1', 'right'); |
- window.setTimeout(function() { |
- touchScrollInTarget('cell3', 'down').then(function() { |
- return touchScrollInTarget('cell3', 'right'); |
- }).then(function() { |
- touchTapInTarget('btnComplete'); |
- }); |
- } , 2 * scrollReturnInterval); |
- } , 2 * scrollReturnInterval); |
+ return touchScrollInTarget('#row1', 'down').then(function() { |
+ return touchScrollInTarget('#row1', 'right'); |
+ }).then(function() { |
+ return delayPromise(4*scrollReturnInterval); |
+ }).then(function() { |
+ return touchScrollInTarget('#cell3', 'down'); |
+ }).then(function() { |
+ return touchScrollInTarget('#cell3', 'right'); |
+ }).then(function() { |
+ touchTapInTarget('#btnComplete'); |
+ }); |
} |