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

Initial Actions support in WebDriver #23805

Merged
merged 1 commit into from Aug 16, 2019
Merged

Initial Actions support in WebDriver #23805

merged 1 commit into from Aug 16, 2019

Conversation

@georgeroman
Copy link
Contributor

georgeroman commented Jul 18, 2019


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • There are tests for these changes

This change is Reviewable

@highfive
Copy link

highfive commented Jul 18, 2019

Heads up! This PR modifies the following files:

@jdm jdm assigned jdm and unassigned asajeffrey Jul 22, 2019
Copy link
Member

jdm left a comment

Good start!

components/webdriver_server/lib.rs Outdated Show resolved Hide resolved
components/webdriver_server/lib.rs Outdated Show resolved Hide resolved
components/webdriver_server/lib.rs Outdated Show resolved Hide resolved
components/webdriver_server/lib.rs Outdated Show resolved Hide resolved
components/webdriver_server/lib.rs Outdated Show resolved Hide resolved
components/webdriver_server/lib.rs Outdated Show resolved Hide resolved
@georgeroman
Copy link
Contributor Author

georgeroman commented Jul 24, 2019

I tested this manually for now and it seems to be working fine.

Copy link
Member

jdm left a comment

Looking good!

use webdriver::actions::{PointerAction, PointerActionItem, PointerType};

// https://w3c.github.io/webdriver/#dfn-input-source-state
pub enum InputSourceState {

This comment has been minimized.

@jdm

jdm Jul 25, 2019

Member

These can be pub(crate)


impl WebDriverSession {
// https://w3c.github.io/webdriver/#dfn-dispatch-actions
pub fn dispatch_actions(

This comment has been minimized.

@jdm

jdm Jul 25, 2019

Member

pub(crate)

// https://w3c.github.io/webdriver/#dfn-dispatch-actions
pub fn dispatch_actions(
&mut self,
constellation_chan: Sender<ConstellationMsg>,

This comment has been minimized.

@jdm

jdm Jul 25, 2019

Member

Let's take this by reference.

PointerAction::Cancel => (),
PointerAction::Down(action) => (),
PointerAction::Move(action) => (),
PointerAction::Up(action) => (),

This comment has been minimized.

@jdm

jdm Jul 25, 2019

Member

Use _action to avoid warnings

});

match key_input_state.dispatch_keyup(raw_key) {
Some(keyboard_event) => {

This comment has been minimized.

@jdm

jdm Jul 25, 2019

Member

Use if let.

@georgeroman
Copy link
Contributor Author

georgeroman commented Aug 3, 2019

@jdm Any other changes for this one?

@jdm
Copy link
Member

jdm commented Aug 6, 2019

./mach test-tidy yields:

./components/webdriver_server/actions.rs�[0m:�[93m74�[0m: �[91muse &[T] instead of &Vec<T>

Otherwise this looks fine.

@jdm
jdm approved these changes Aug 6, 2019
@jdm
Copy link
Member

jdm commented Aug 6, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Aug 6, 2019

📌 Commit 23f7677 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Aug 6, 2019

Testing commit 23f7677 with merge 2252d0c...

bors-servo added a commit that referenced this pull request Aug 6, 2019
…er, r=jdm

Initial Actions support in WebDriver

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23805)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 6, 2019

💔 Test failed - linux-rel-wpt

@georgeroman
Copy link
Contributor Author

georgeroman commented Aug 6, 2019

Oh, it looks like the test I added in https://hg.mozilla.org/mozilla-central/rev/fff7b5299ecf triggers a panick in the server. This should get solved once webdriver-rust gets updated.

@jdm
Copy link
Member

jdm commented Aug 15, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Aug 15, 2019

📌 Commit 75efb09 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Aug 15, 2019

Testing commit 75efb09 with merge 5f5573d...

bors-servo added a commit that referenced this pull request Aug 15, 2019
…er, r=jdm

Initial Actions support in WebDriver

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23805)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 15, 2019

💔 Test failed - linux-rel-css

@jdm
Copy link
Member

jdm commented Aug 15, 2019

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Aug 15, 2019

Testing commit 75efb09 with merge 376847c...

bors-servo added a commit that referenced this pull request Aug 15, 2019
…er, r=jdm

Initial Actions support in WebDriver

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23805)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing 376847c to master...

@bors-servo bors-servo merged commit 75efb09 into servo:master Aug 16, 2019
3 checks passed
3 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request Aug 16, 2019
3 of 3 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.