Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pause action for key and pointer source types #20154

Merged
merged 1 commit into from Nov 12, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Nov 7, 2019

In Webdriver spec, it has an 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 as per web driver spec:
https://www.w3.org/TR/webdriver/#dfn-pause

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/c/chromium/src/+/1900650
Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org>
Reviewed-by: Lan Wei <lanwei@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714370}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1900650 branch 2 times, most recently from d250453 to d4e9381 Compare November 11, 2019 20:44
In Webdriver spec, it has an 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 as per web driver spec:
https://www.w3.org/TR/webdriver/#dfn-pause

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/c/chromium/src/+/1900650
Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org>
Reviewed-by: Lan Wei <lanwei@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714370}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants