script: implement AbortController (#31361)

* Implement AbortController

Signed-off-by: syvb <me@iter.ca>

* Update WPT tests

Signed-off-by: syvb <me@iter.ca>

* Address review comments

* Fix duplicate import generation

* Update WPT test expectations

* Change expectation to FAIL for flaky test

---------

Signed-off-by: syvb <me@iter.ca>
This commit is contained in:
Smitty 2024-05-04 11:00:01 -04:00 committed by GitHub
parent 383607d01e
commit 7fce850cff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
88 changed files with 522 additions and 1194 deletions

View file

@ -17,146 +17,32 @@
[Event interface: new CustomEvent("foo") must inherit property "composed" with the proper type]
expected: FAIL
[AbortController interface: existence and properties of interface object]
expected: FAIL
[AbortController interface object length]
expected: FAIL
[AbortController interface object name]
expected: FAIL
[AbortController interface: existence and properties of interface prototype object]
expected: FAIL
[AbortController interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[AbortController interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[AbortController interface: attribute signal]
expected: FAIL
[AbortController interface: operation abort()]
expected: FAIL
[AbortController must be primary interface of new AbortController()]
expected: FAIL
[Stringification of new AbortController()]
expected: FAIL
[AbortController interface: new AbortController() must inherit property "signal" with the proper type]
expected: FAIL
[AbortController interface: new AbortController() must inherit property "abort()" with the proper type]
expected: FAIL
[AbortSignal interface: existence and properties of interface object]
expected: FAIL
[AbortSignal interface object length]
expected: FAIL
[AbortSignal interface object name]
expected: FAIL
[AbortSignal interface: existence and properties of interface prototype object]
expected: FAIL
[AbortSignal interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[AbortSignal interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[AbortSignal interface: operation abort()]
expected: FAIL
[AbortSignal interface: attribute aborted]
expected: FAIL
[AbortSignal interface: attribute onabort]
expected: FAIL
[AbortSignal must be primary interface of new AbortController().signal]
expected: FAIL
[Stringification of new AbortController().signal]
expected: FAIL
[AbortSignal interface: new AbortController().signal must inherit property "abort()" with the proper type]
expected: FAIL
[AbortSignal interface: new AbortController().signal must inherit property "aborted" with the proper type]
expected: FAIL
[AbortSignal interface: new AbortController().signal must inherit property "onabort" with the proper type]
expected: FAIL
[EventTarget interface: new AbortController().signal must inherit property "addEventListener(DOMString, EventListener?, optional (AddEventListenerOptions or boolean))" with the proper type]
expected: FAIL
[EventTarget interface: calling addEventListener(DOMString, EventListener?, optional (AddEventListenerOptions or boolean)) on new AbortController().signal with too few arguments must throw TypeError]
expected: FAIL
[EventTarget interface: new AbortController().signal must inherit property "removeEventListener(DOMString, EventListener?, optional (EventListenerOptions or boolean))" with the proper type]
expected: FAIL
[EventTarget interface: calling removeEventListener(DOMString, EventListener?, optional (EventListenerOptions or boolean)) on new AbortController().signal with too few arguments must throw TypeError]
expected: FAIL
[EventTarget interface: new AbortController().signal must inherit property "dispatchEvent(Event)" with the proper type]
expected: FAIL
[EventTarget interface: calling dispatchEvent(Event) on new AbortController().signal with too few arguments must throw TypeError]
expected: FAIL
[AbortController interface: operation abort(optional any)]
expected: FAIL
[AbortController interface: new AbortController() must inherit property "abort(optional any)" with the proper type]
expected: FAIL
[AbortController interface: calling abort(optional any) on new AbortController() with too few arguments must throw TypeError]
expected: FAIL
[AbortSignal interface: operation abort(optional any)]
expected: FAIL
[AbortSignal interface: attribute reason]
expected: FAIL
[AbortSignal interface: operation throwIfAborted()]
expected: FAIL
[AbortSignal interface: new AbortController().signal must inherit property "abort(optional any)" with the proper type]
expected: FAIL
[AbortSignal interface: calling abort(optional any) on new AbortController().signal with too few arguments must throw TypeError]
expected: FAIL
[AbortSignal interface: new AbortController().signal must inherit property "reason" with the proper type]
expected: FAIL
[AbortSignal interface: new AbortController().signal must inherit property "throwIfAborted()" with the proper type]
expected: FAIL
[AbortSignal interface: operation timeout(unsigned long long)]
expected: FAIL
[AbortSignal interface: new AbortController().signal must inherit property "timeout(unsigned long long)" with the proper type]
expected: FAIL
[AbortSignal interface: calling timeout(unsigned long long) on new AbortController().signal with too few arguments must throw TypeError]
expected: FAIL
[AbortSignal interface: operation any(sequence<AbortSignal>)]
expected: FAIL
[AbortSignal interface: new AbortController().signal must inherit property "any(sequence<AbortSignal>)" with the proper type]
expected: FAIL
[AbortSignal interface: calling any(sequence<AbortSignal>) on new AbortController().signal with too few arguments must throw TypeError]
expected: FAIL