mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update CustomEvent webidl interface (#33481)
The [idl interface](https://dom.spec.whatwg.org/#interface-customevent) and servo's implementation had diverged. * Extra arguments to initCustomEvent are optional (fixes `dom/events/CustomEvent.html`) * The CustomEvent constructor is infallible * "[Exposed=*]" (and the same for the "Event" interface since it's CustomEvent's parent.) Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
4c3b3529a8
commit
7cbc5f6ee6
6 changed files with 14 additions and 17 deletions
|
@ -1,3 +0,0 @@
|
|||
[CustomEvent.html]
|
||||
[initCustomEvent's default parameter values.]
|
||||
expected: FAIL
|
3
tests/wpt/meta/dom/idlharness.any.js.ini
vendored
3
tests/wpt/meta/dom/idlharness.any.js.ini
vendored
|
@ -11,9 +11,6 @@
|
|||
[Event interface: new Event("foo") must inherit property "composed" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[CustomEvent interface: operation initCustomEvent(DOMString, optional boolean, optional boolean, optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[Event interface: new CustomEvent("foo") must inherit property "composed" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
|
3
tests/wpt/meta/dom/idlharness.window.js.ini
vendored
3
tests/wpt/meta/dom/idlharness.window.js.ini
vendored
|
@ -169,9 +169,6 @@
|
|||
[XPathExpression interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[CustomEvent interface: operation initCustomEvent(DOMString, optional boolean, optional boolean, optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[XPathResult interface: constant ORDERED_NODE_ITERATOR_TYPE on interface object]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue