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,31 +1,7 @@
[event.any.html]
[AbortController abort() should fire event synchronously]
expected: FAIL
[controller.signal should always return the same object]
expected: FAIL
[controller.abort() should do nothing the second time it is called]
expected: FAIL
[event handler should not be called if added after controller.abort()]
expected: FAIL
[the abort event should have the right properties]
expected: FAIL
[AbortController abort(reason) should set signal.reason]
expected: FAIL
[aborting AbortController without reason creates an "AbortError" DOMException]
expected: FAIL
[AbortController abort(undefined) creates an "AbortError" DOMException]
expected: FAIL
[AbortController abort(null) should set signal.reason]
expected: FAIL
[static aborting signal should have right properties]
expected: FAIL
@ -38,44 +14,14 @@
[throwIfAborted() should throw primitive abort.reason if signal aborted]
expected: FAIL
[throwIfAborted() should not throw if signal not aborted]
expected: FAIL
[AbortSignal.reason returns the same DOMException]
expected: FAIL
[AbortController.signal.reason returns the same DOMException]
expected: FAIL
[event.any.worker.html]
[AbortController abort() should fire event synchronously]
expected: FAIL
[controller.signal should always return the same object]
expected: FAIL
[controller.abort() should do nothing the second time it is called]
expected: FAIL
[event handler should not be called if added after controller.abort()]
expected: FAIL
[the abort event should have the right properties]
expected: FAIL
[AbortController abort(reason) should set signal.reason]
expected: FAIL
[aborting AbortController without reason creates an "AbortError" DOMException]
expected: FAIL
[AbortController abort(undefined) creates an "AbortError" DOMException]
expected: FAIL
[AbortController abort(null) should set signal.reason]
expected: FAIL
[static aborting signal should have right properties]
expected: FAIL
@ -88,11 +34,5 @@
[throwIfAborted() should throw primitive abort.reason if signal aborted]
expected: FAIL
[throwIfAborted() should not throw if signal not aborted]
expected: FAIL
[AbortSignal.reason returns the same DOMException]
expected: FAIL
[AbortController.signal.reason returns the same DOMException]
expected: FAIL