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

@ -1,68 +1,14 @@
[AddEventListenerOptions-signal.any.html]
[Passing an AbortSignal to addEventListener works with the once flag]
expected: FAIL
[Adding then aborting a listener in another listener does not call it]
expected: FAIL
[Passing an AbortSignal to addEventListener works with the capture flag]
expected: FAIL
[Aborting from a listener does not call future listeners]
expected: FAIL
[Passing an AbortSignal to multiple listeners]
expected: FAIL
[Passing an AbortSignal to addEventListener does not prevent removeEventListener]
expected: FAIL
[Aborting from a nested listener should remove it]
expected: FAIL
[Removing a once listener works with a passed signal]
expected: FAIL
[Passing an AbortSignal to addEventListener options should allow removing a listener]
expected: FAIL
[Passing null as the signal should throw]
expected: FAIL
[Passing null as the signal should throw (listener is also null)]
expected: FAIL
[AddEventListenerOptions-signal.any.worker.html]
[Passing an AbortSignal to addEventListener works with the once flag]
expected: FAIL
[Adding then aborting a listener in another listener does not call it]
expected: FAIL
[Passing an AbortSignal to addEventListener works with the capture flag]
expected: FAIL
[Aborting from a listener does not call future listeners]
expected: FAIL
[Passing an AbortSignal to multiple listeners]
expected: FAIL
[Passing an AbortSignal to addEventListener does not prevent removeEventListener]
expected: FAIL
[Aborting from a nested listener should remove it]
expected: FAIL
[Removing a once listener works with a passed signal]
expected: FAIL
[Passing an AbortSignal to addEventListener options should allow removing a listener]
expected: FAIL
[Passing null as the signal should throw]
expected: FAIL
[Passing null as the signal should throw (listener is also null)]
expected: FAIL