mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Enable abort controller preference for fetch/api/abort (#39282)
This sets a baseline of tests for fetch-related implementation of AbortController. Part of #34866 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
c11670b067
commit
5beb16d671
5 changed files with 26 additions and 197 deletions
144
tests/wpt/meta/fetch/api/abort/general.any.js.ini
vendored
144
tests/wpt/meta/fetch/api/abort/general.any.js.ini
vendored
|
@ -5,6 +5,7 @@
|
|||
expected: ERROR
|
||||
|
||||
[general.any.html]
|
||||
expected: TIMEOUT
|
||||
[Aborting rejects with AbortError]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -69,31 +70,31 @@
|
|||
expected: FAIL
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.arrayBuffer()]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.blob()]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.formData()]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.json()]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.text()]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Stream errors once aborted. Underlying connection closed.]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Stream errors once aborted, after reading. Underlying connection closed.]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Stream will not error if body is empty. It's closed with an empty queue before it errors.]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Readable stream synchronously cancels with AbortError if aborted before reading]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Signal state is cloned]
|
||||
expected: FAIL
|
||||
|
@ -111,61 +112,11 @@
|
|||
expected: FAIL
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.bytes()]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's window is not null]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Input URL is not valid]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Input URL has credentials]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's mode is navigate]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's referrer is invalid]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's method is invalid]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's method is forbidden]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's mode is no-cors and method is not simple]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's cache mode is only-if-cached and mode is not same-origin]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode cors]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode no-cors]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad referrerPolicy init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad mode init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad credentials init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad cache init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad redirect init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[Signal removed by setting to null]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
|
||||
[general.any.worker.html]
|
||||
expected: TIMEOUT
|
||||
[Aborting rejects with AbortError]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -230,31 +181,31 @@
|
|||
expected: FAIL
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.arrayBuffer()]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.blob()]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.formData()]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.json()]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.text()]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Stream errors once aborted. Underlying connection closed.]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Stream errors once aborted, after reading. Underlying connection closed.]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Stream will not error if body is empty. It's closed with an empty queue before it errors.]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Readable stream synchronously cancels with AbortError if aborted before reading]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Signal state is cloned]
|
||||
expected: FAIL
|
||||
|
@ -272,55 +223,4 @@
|
|||
expected: FAIL
|
||||
|
||||
[Fetch aborted & connection closed when aborted after calling response.bytes()]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's window is not null]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Input URL is not valid]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Input URL has credentials]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's mode is navigate]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's referrer is invalid]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's method is invalid]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's method is forbidden]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's mode is no-cors and method is not simple]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - RequestInit's cache mode is only-if-cached and mode is not same-origin]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode cors]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode no-cors]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad referrerPolicy init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad mode init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad credentials init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad cache init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[TypeError from request constructor takes priority - Bad redirect init parameter value]
|
||||
expected: FAIL
|
||||
|
||||
[Signal removed by setting to null]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue