Bug 1693598 [wpt PR 27681] - Add pointerevents' properties to gpubenchmarking.PointerActionSequence, a=testonly

Automatic update from web-platform-tests
Add pointerevents' properties to gpubenchmarking.PointerActionSequence

I have added the pointerevents' properties to WebDriver Action API, and
some WPT tests. Because gpubenchmarking.PointerActionSequence does not
have these properties, these tests are failing on content shell. This CL
will add the properties to gpubenchmarking.PointerActionSequence as
well.

Bug: 1147126
Change-Id: I55d14a342d63461cdfab6a31389a7c0bb9757bbb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2683954
Reviewed-by: David Bokan <bokan@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: Mustaq Ahmed <mustaq@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#872509}

--

wpt-commits: 51639933704c8a87a2ac7d728e84613cbef3c9e0
wpt-pr: 27681
This commit is contained in:
Lan Wei 2021-04-23 10:16:54 +00:00 коммит произвёл moz-wptsync-bot
Родитель 3f05cec374
Коммит 6c6e9ac5ae
1 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -45,8 +45,8 @@ async_test(t => {
let actions = new test_driver.Actions()
.addPointer("touchPointer1", "touch")
.pointerMove(0, 0, {origin: test})
.pointerDown({width:23, height:31, pressure:0.78, tiltX:21, tiltY:-8, twist:355})
.pointerMove(15, 0, {origin: test, width:39, height:35, pressure:0.91, tiltX:-19, tiltY:62, twist:345})
.pointerDown({width:23, height:31, pressure:0.78})
.pointerMove(15, 0, {origin: test, width:39, height:35, pressure:0.91})
.pointerUp()
.send()
.then(t.step_func_done(() => {
@ -55,17 +55,17 @@ async_test(t => {
assert_equals(pointerDownEvent.width, 23);
assert_equals(pointerDownEvent.height, 31);
assert_equals(Math.round(pointerDownEvent.pressure * 100) / 100, 0.78);
assert_equals(pointerDownEvent.tiltX, 21);
assert_equals(pointerDownEvent.tiltY, -8);
assert_equals(pointerDownEvent.twist, 355);
assert_equals(pointerDownEvent.tiltX, 0);
assert_equals(pointerDownEvent.tiltY, 0);
assert_equals(pointerDownEvent.twist, 0);
assert_equals(pointerMoveEvent.type, "pointermove");
assert_equals(pointerMoveEvent.pointerType, "touch");
assert_equals(pointerMoveEvent.width, 39);
assert_equals(pointerMoveEvent.height, 35);
assert_equals(Math.round(pointerMoveEvent.pressure * 100) / 100, 0.91);
assert_equals(pointerMoveEvent.tiltX, -19);
assert_equals(pointerMoveEvent.tiltY, 62);
assert_equals(pointerMoveEvent.twist, 345);
assert_equals(pointerMoveEvent.tiltX, 0);
assert_equals(pointerMoveEvent.tiltY, 0);
assert_equals(pointerMoveEvent.twist, 0);
})).catch(e => t.step_func(() => assert_unreached("Actions sequence failed " + e)));
});
</script>