Properly set MouseEvent buttons property

This commit is contained in:
Paul Rouget 2019-10-28 17:11:45 +01:00
parent 9640ad1ccf
commit 3a8d306281
2 changed files with 1 additions and 4 deletions

View file

@ -137,7 +137,7 @@ impl MouseEvent {
init.parent.shiftKey, init.parent.shiftKey,
init.parent.metaKey, init.parent.metaKey,
init.button, init.button,
0, init.buttons,
init.relatedTarget.as_deref(), init.relatedTarget.as_deref(),
None, None,
); );

View file

@ -1,8 +1,5 @@
[Event-subclasses-constructors.html] [Event-subclasses-constructors.html]
type: testharness type: testharness
[MouseEvent constructor (argument with non-default values)]
expected: FAIL
[WheelEvent constructor (argument with non-default values)] [WheelEvent constructor (argument with non-default values)]
expected: FAIL expected: FAIL