Implement Event.composedPath (#31123)

* Implement Event.composedPath

* Implement Event.composedPath

Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>

* Use documentation comments for EventMethods

Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>

* Update wpt test expectations

Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>

---------

Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
Taym Haddadi 2024-01-23 15:56:01 +01:00 committed by GitHub
parent 54fb381a0a
commit 5d7e2a8239
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 35 additions and 67 deletions

View file

@ -8,9 +8,6 @@
[EventTarget interface: new AbortController().signal must inherit property "addEventListener(DOMString, EventListener, [object Object\],[object Object\])" with the proper type]
expected: FAIL
[Event interface: operation composedPath()]
expected: FAIL
[AbortSignal must be primary interface of new AbortController().signal]
expected: FAIL
@ -83,9 +80,6 @@
[AbortSignal interface: new AbortController().signal must inherit property "onabort" with the proper type]
expected: FAIL
[Event interface: new CustomEvent("foo") must inherit property "composedPath()" with the proper type]
expected: FAIL
[AbortController interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
@ -104,9 +98,6 @@
[EventTarget interface: calling dispatchEvent(Event) on new AbortController().signal with too few arguments must throw TypeError]
expected: FAIL
[Event interface: new Event("foo") must inherit property "composedPath()" with the proper type]
expected: FAIL
[AbortController must be primary interface of new AbortController()]
expected: FAIL

View file

@ -74,9 +74,6 @@
[Element interface: operation attachShadow(ShadowRootInit)]
expected: FAIL
[Event interface: new CustomEvent("foo") must inherit property "composedPath()" with the proper type]
expected: FAIL
[AbortController interface: operation abort()]
expected: FAIL
@ -101,18 +98,12 @@
[StaticRange interface: existence and properties of interface object]
expected: FAIL
[Event interface: new Event("foo") must inherit property "composedPath()" with the proper type]
expected: FAIL
[AbortSignal interface: attribute aborted]
expected: FAIL
[AbstractRange interface: existence and properties of interface prototype object]
expected: FAIL
[Event interface: operation composedPath()]
expected: FAIL
[AbstractRange interface: attribute endContainer]
expected: FAIL
@ -203,9 +194,6 @@
[Element interface: operation prepend([object Object\],[object Object\])]
expected: FAIL
[Event interface: document.createEvent("Event") must inherit property "composedPath()" with the proper type]
expected: FAIL
[StaticRange interface object length]
expected: FAIL

View file

@ -5,24 +5,15 @@
expected: ERROR
[idlharness.any.worker.html]
[Event interface: operation composedPath()]
expected: FAIL
[Event interface: attribute composed]
expected: FAIL
[Event interface: new Event("foo") must inherit property "composedPath()" with the proper type]
expected: FAIL
[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 "composedPath()" with the proper type]
expected: FAIL
[Event interface: new CustomEvent("foo") must inherit property "composed" with the proper type]
expected: FAIL

View file

@ -151,9 +151,6 @@
[XPathResult interface: constant ANY_TYPE on interface prototype object]
expected: FAIL
[Event interface: new Event("foo") must inherit property "composedPath()" with the proper type]
expected: FAIL
[CharacterData interface: operation before((Node or DOMString)...)]
expected: FAIL
@ -166,9 +163,6 @@
[XPathResult interface: document.evaluate("//*", document.body) must inherit property "ANY_TYPE" with the proper type]
expected: FAIL
[Event interface: operation composedPath()]
expected: FAIL
[XPathEvaluator interface: operation evaluate(DOMString, Node, optional XPathNSResolver?, optional unsigned short, optional XPathResult?)]
expected: FAIL
@ -370,9 +364,6 @@
[XPathEvaluator interface: new XPathEvaluator() must inherit property "createNSResolver(Node)" with the proper type]
expected: FAIL
[Event interface: document.createEvent("Event") must inherit property "composedPath()" with the proper type]
expected: FAIL
[StaticRange interface object length]
expected: FAIL
@ -394,9 +385,6 @@
[AbortSignal interface: new AbortController().signal must inherit property "onabort" with the proper type]
expected: FAIL
[Event interface: new CustomEvent("foo") must inherit property "composedPath()" with the proper type]
expected: FAIL
[Document interface: calling evaluate(DOMString, Node, optional XPathNSResolver?, optional unsigned short, optional XPathResult?) on xmlDoc with too few arguments must throw TypeError]
expected: FAIL