Commit 9492aa14 authored by Lan Wei's avatar Lan Wei Committed by Commit Bot

Add touchTapInTarget function for wpt touch event tests

This function is reverted from pointerevent_support.js file, but the
tests that use it are still in the wpt repository.

Bug: 606367

TBR=nzolghadr@chromium.org

Change-Id: Ifd97bab0bf411b000573056152a563f4385f2500
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1594735Reviewed-by: default avatarLan Wei <lanwei@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#656405}
parent a35bd30b
......@@ -285,3 +285,12 @@ function touchScrollInTarget(target, direction) {
.pointerUp()
.send();
}
function touchTapInTarget(target) {
return new test_driver.Actions()
.addPointer("pointer1", "touch")
.pointerMove(0, 0, {origin: target})
.pointerDown()
.pointerUp()
.send();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment