Closed Bug 1594800 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 20154 - Add pause action for key and pointer source types

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 20154 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/20154
Details from upstream follow.

Lan Wei <lanwei@chromium.org> wrote:

Add pause action for key and pointer source types

In Webdriver spec, it has example (https://www.w3.org/TR/webdriver/
#example-11) that the source has a pause action, which means that the
source does not have any action at this tick. Currently we only have
a pause action for none source type, we should have the pause action
for the key and pointer types as well.

For example:
let actions = new test_driver.Actions()
.addPointer("touchPointer1", "touch")
.addPointer("touchPointer2", "touch")
.pointerMove(10, 0, {origin: test1, sourceName: "touchPointer2"})
.pointerMove(0, 0, {origin: test1, sourceName: "touchPointer1"})
.pointerDown({sourceName: "touchPointer1"})
.pointerDown({sourceName: "touchPointer2"})
.pause(0, "pointer", {sourceName: "touchPointer1"})
.pointerMove(0, 10, {origin: test1, sourceName: "touchPointer2"})
.pointerUp({sourceName: "touchPointer1"})
.pointerUp({sourceName: "touchPointer2"});

Bug: 1020674
Change-Id: Iacd2811a91bc26d273cd9589a96e0a377941d79c

Reviewed-on: https://chromium-review.googlesource.com/1900650
WPT-Export-Revision: b60aa93e21f0594c50f0e3e9b53897cdcefcf333

GitHub CI Results

wpt.fyi PR Results Base Results

Ran 101 tests and 139 subtests

Firefox

Chrome

Safari

OK : 20
PASS : 96
FAIL : 20
TIMEOUT: 28
ERROR : 53
NOTRUN : 23

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e67a2ca15c97
[wpt PR 20154] - Add pause action for key and pointer source types, a=testonly
https://hg.mozilla.org/integration/autoland/rev/2643d580828a
[wpt PR 20154] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.