Auto merge of #23249 - georgeroman:implement_mouseevent_buttons, r=Manishearth

Implement MouseEvent buttons attribute

<!-- 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
- [X] These changes fix #22884

<!-- 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/23249)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2019-05-16 09:17:15 -04:00 committed by GitHub
commit 3a5ebb1f5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 111 additions and 36 deletions

View file

@ -1,20 +1,5 @@
[Event-subclasses-constructors.html]
type: testharness
[MouseEvent constructor (no argument)]
expected: FAIL
[MouseEvent constructor (undefined argument)]
expected: FAIL
[MouseEvent constructor (null argument)]
expected: FAIL
[MouseEvent constructor (empty argument)]
expected: FAIL
[MouseEvent constructor (argument with default values)]
expected: FAIL
[MouseEvent constructor (argument with non-default values)]
expected: FAIL

View file

@ -5,9 +5,6 @@
[MouseEvent interface: new WheelEvent("event") must inherit property "buttons" with the proper type]
expected: FAIL
[MouseEvent interface: new MouseEvent("event") must inherit property "buttons" with the proper type]
expected: FAIL
[UIEvent interface: new CompositionEvent("event") must inherit property "view" with the proper type]
expected: FAIL
@ -152,9 +149,6 @@
[WheelEvent interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[MouseEvent interface: attribute buttons]
expected: FAIL
[MouseEvent interface: new WheelEvent("event") must inherit property "screenY" with the proper type]
expected: FAIL