Repository navigation
Implement WheelEvent interface - #23154
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @paulrouget (or someone else) soon. |
|
Heads up! This PR modifies the following files:
|
|
Error syncing changes upstream. Logs saved in error-snapshot-1554165902717. |
|
@robert-snakard Looks like this needs to be rebased in a way that doesn't include commits which are already present on master. |
|
This should just be master with 2 commits on top... |
|
It's possible that because the @bors-servo merge commits are missing it is not actually equivalent to master. I recommend doing a hard reset to master and cherry-picking your two commits, then force pushing. |
ef4adf8 to
9e01a45
Compare
|
Opened new PR for upstreamable changes. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#16199. |
|
PR title changed; changed existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#16199. |
|
@jdm Updated the branch version and tested on my machine, the patch still works. Do I need to do anything else? |
|
No, we just need to review these changes now. |
|
@paulrouget Review ping? |
|
@bors-servo try=wpt |
Implement WheelEvent interface Created a new dom interface: "WheelEvent" and added WPT tests to confirm the interface works. To do this I had to do the following: - Create a new `WheelEvent` dom interface. It can be found in `script/dom/wheelevent.rs` and `dom/webidls/WheelEvent.webidl` - Add a new `WheelEvent` option to the compositor's `CompositorEvent` enum - Add a new `Wheel` option to the compositor's `WindowEvent` enum - Add a new `WheelDelta` type to the `script_traits` module - Modify the `scroll_event` logic. Now we send a `WheelEvent` before scrolling. Repeat: we send the WheelEvent notification BEFORE we send the scroll delta. - Add two manual wpt tests to the `uievents/order-of-events` test collection --- <!-- 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 - [X] These changes fix #22843 (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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/23154) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel-css |
|
This failed because tests that were supposed to fail are now passing, looking for the idlharness now to update it |
9e01a45 to
99e99b8
Compare
|
@bors-servo try=wpt |
|
@robert-snakard: 🔑 Insufficient privileges: not in try users |
|
|
Missed that one when merging with the mousebuttons patch. Will fix tonight.
Is there any way to run these tests on my local machine before I push?
…On Fri, Jun 7, 2019 at 2:03 PM Josh Matthews ***@***.***> wrote:
▶ Unexpected subtest result in /uievents/idlharness.window.html:
└ PASS [expected FAIL] MouseEvent interface: new WheelEvent("event") must inherit property "buttons" with the proper type
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23154?email_source=notifications&email_token=ADFBHKRGRGLXVMHKMTLEJQTPZLEKTA5CNFSM4HC3T5M2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXG7SXA#issuecomment-500037980>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADFBHKWUW2XIWB2SWFVYPZTPZLEKTANCNFSM4HC3T5MQ>
.
|
|
You can run individual tests or directories with |
|
Looks like these tests as well: Otherwise it should be ready :) |
c44a49c to
cc16f43
Compare
cc16f43 to
219df9b
Compare
|
Error syncing changes upstream. Logs saved in error-snapshot-1559972947848. |
|
Error syncing changes upstream. Logs saved in error-snapshot-1559972971985. |
Note: The WheelEvent interface supports rotation in all 3 spatial dimensions. This implementation only supports two due to limitations in the Glutin compositor. The wheelevent interface is a dom interface that triggers for any attached device that can rotate in one or more spatial dimensions. Traditionally this is the mouse wheel though other devices could be used as well. E.g. the trackball on a trackball mouse.
The wheelevent sends a signal when a supported device is rotated in the x, y, or z rotational dimensions. These tests only check whether this signal is received for any rotation at all.
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#16199. |
|
@bors-servo r=paulrouget |
|
📌 Commit 52a8f5a has been approved by |
Implement WheelEvent interface Created a new dom interface: "WheelEvent" and added WPT tests to confirm the interface works. To do this I had to do the following: - Create a new `WheelEvent` dom interface. It can be found in `script/dom/wheelevent.rs` and `dom/webidls/WheelEvent.webidl` - Add a new `WheelEvent` option to the compositor's `CompositorEvent` enum - Add a new `Wheel` option to the compositor's `WindowEvent` enum - Add a new `WheelDelta` type to the `script_traits` module - Modify the `scroll_event` logic. Now we send a `WheelEvent` before scrolling. Repeat: we send the WheelEvent notification BEFORE we send the scroll delta. - Add two manual wpt tests to the `uievents/order-of-events` test collection --- <!-- 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 - [X] These changes fix #22843 (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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/23154) <!-- Reviewable:end -->
|
☀️ Test successful - arm64, linux-rel-css, linux-rel-wpt, status-taskcluster |
|
Thanks for finishing the merge up for me @jdm / @paulrouget |
|
Thanks for doing the hard work :) |
|
Haha, we must have different definitions of hard work, that merge took forever! |
Created a new dom interface: "WheelEvent" and added WPT tests to confirm the interface works. To do this I had to do the following:
WheelEventdom interface. It can be found inscript/dom/wheelevent.rsanddom/webidls/WheelEvent.webidlWheelEventoption to the compositor'sCompositorEventenumWheeloption to the compositor'sWindowEventenumWheelDeltatype to thescript_traitsmodulescroll_eventlogic. Now we send aWheelEventbefore scrolling. Repeat: we send the WheelEvent notification BEFORE we send the scroll delta.uievents/order-of-eventstest collection./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is