mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
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:
parent
383607d01e
commit
7fce850cff
88 changed files with 522 additions and 1194 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue