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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js

Issue 2157133002: Make gpuBenchmarking.smoothDrag or smoothScrollBy scroll properly in pointer event tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update TestExpections Created 4 years, 5 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_touch-action-span-test_touch-manual-automation.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js
index d972b5a3f8dad5862a0c318738862da4462c6140..f3357f3830175901f85b79bf544ee6f78cad6d6a 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js
@@ -1,8 +1,22 @@
importAutomationScript('/pointerevents/pointerevent_common_input.js');
-function inject_input() {
- touchScrollUpInTarget('target0');
- touchScrollLeftInTarget('target0');
+function callback_function() {
touchTapInTarget('btnComplete');
}
+function inject_input() {
+ var target = document.getElementById("target0");
+ var targetRect = target.getBoundingClientRect();
+
+ var span = document.getElementById("testspan");
+ var spanRect = span.getBoundingClientRect();
+
+ var x = (spanRect.left - targetRect.left)/2;
+ touchScrollByPosition(x, targetRect.top + 100, 30, "down");
+ touchScrollByPosition(x, targetRect.top + 100, 30, "right");
+
+ window.setTimeout(function() {
+ touchScrollUpInTarget('testspan', false);
+ touchScrollLeftInTarget('testspan', false, callback_function);
+ } , 6*scrollReturnInterval);
+}

Powered by Google App Engine
This is Rietveld 408576698