Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual-automation.js

Issue 2380943003: Update automation scripts for wpt tests (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual-automation.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual-automation.js b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual-automation.js
index 380c17767c692ec73c04793a614e72b2a2b0efc3..a67fa4aa5a83f9063d1e564c0a18e569d0011f76 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual-automation.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual-automation.js
@@ -1,6 +1,14 @@
importAutomationScript('/pointerevents/pointerevent_common_input.js');
function inject_input() {
- return mouseDragInTarget('#btnCapture');
+ return mouseMoveIntoTarget('#btnCapture').then(function() {
+ return mouseButtonPress(1);
+ }).then(function() {
+ return mouseMoveIntoTarget('#btnCapture');
+ }).then(function() {
+ return delayPromise(500);
+ }).then(function() {
+ return mouseButtonRelease(1);
+ });
}

Powered by Google App Engine
This is Rietveld 408576698