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

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

Issue 2300623004: Make tests wait until automation is done to prevent leaks (Closed)
Patch Set: Fix test expectation 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_pointerleave_pen-manual-automation.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_pointerleave_pen-manual-automation.js b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_pointerleave_pen-manual-automation.js
index 66bffa4f319df05fb8476fc15e697f4c68e2df1e..0e3e1758451242f57eabe4bacac687f8a5d166eb 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_pointerleave_pen-manual-automation.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_pointerleave_pen-manual-automation.js
@@ -1,10 +1,8 @@
importAutomationScript('/pointerevents/pointerevent_common_input.js');
function inject_input() {
- if (window.eventSender) {
- var target0 = document.getElementById('target0');
- penMoveIntoTarget(target0);
- eventSender.mouseMoveTo(0, 0, [], "pen", 0);
- }
+ return penMoveIntoTarget('target0').then(function() {
+ penMoveToDocument();
+ });
}

Powered by Google App Engine
This is Rietveld 408576698