Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement ElementClick wd command #24090
Conversation
highfive
commented
Aug 28, 2019
|
Heads up! This PR modifies the following files:
|
| let event_target = option_element.upcast::<EventTarget>(); | ||
| event_target.fire_event(atom!("mouseover")); | ||
| event_target.fire_event(atom!("mousemove")); | ||
| event_target.fire_event(atom!("mousedown")); |
This comment has been minimized.
This comment has been minimized.
| let previous_selectedness = option_element.Selected(); | ||
|
|
||
| // Step 8.6.3 | ||
| option_element.SetSelected(true); |
This comment has been minimized.
This comment has been minimized.
jdm
Aug 29, 2019
Member
This seems to be ignoring the bit in the spec about the multiple attribute in the element's container.
| // Step 8 | ||
| match node.downcast::<HTMLOptionElement>() { | ||
| Some(option_element) => { | ||
| // https://w3c.github.io/webdriver/#dfn-container |
This comment has been minimized.
This comment has been minimized.
jdm
Aug 29, 2019
Member
We should file an issue about extract this into a function that supports optgroup as well (per the spec).
|
@jdm Is this ready for merging? |
|
@bors-servo r+ |
|
|
…, r=jdm Implement ElementClick wd command <!-- 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/24090) <!-- Reviewable:end -->
|
|
|
|
Hmm, this is the same test that strangely failed on Mac in #23725. It now also fails on Linux, that's weird, especially since this PR should have no influence on it. |
|
@bors-servo try=wpt |
…, r=<try> Implement ElementClick wd command <!-- 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/24090) <!-- Reviewable:end -->
|
|
|
@bors-servo r+ |
|
|
…, r=jdm Implement ElementClick wd command <!-- 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/24090) <!-- Reviewable:end -->
|
|
georgeroman commentedAug 28, 2019
•
edited by SimonSapin
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is