diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2024-05-07 08:23:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 06:23:14 +0000 |
commit | 8bc49299c89b15b065d1aa7df00416e8e56b2c49 (patch) | |
tree | 95c02c76d887a57a72074b1a1a2ff8fb0e3b62c1 /tests/wpt/meta/fetch/api | |
parent | 45f2433d7695231d509fc2b316c390d6d7e0e6f7 (diff) | |
download | servo-8bc49299c89b15b065d1aa7df00416e8e56b2c49.tar.gz servo-8bc49299c89b15b065d1aa7df00416e8e56b2c49.zip |
Revert "script: implement AbortController (#31361)" (#32243)
This reverts commit 7fce850cffb72a6fbcf763a40164a9b35b7fa833.
Diffstat (limited to 'tests/wpt/meta/fetch/api')
4 files changed, 165 insertions, 26 deletions
diff --git a/tests/wpt/meta/fetch/api/abort/destroyed-context.html.ini b/tests/wpt/meta/fetch/api/abort/destroyed-context.html.ini new file mode 100644 index 00000000000..94ac9e3e33e --- /dev/null +++ b/tests/wpt/meta/fetch/api/abort/destroyed-context.html.ini @@ -0,0 +1,2 @@ +[destroyed-context.html] + expected: ERROR diff --git a/tests/wpt/meta/fetch/api/abort/general.any.js.ini b/tests/wpt/meta/fetch/api/abort/general.any.js.ini index e1d17392e46..a15d01c1f53 100644 --- a/tests/wpt/meta/fetch/api/abort/general.any.js.ini +++ b/tests/wpt/meta/fetch/api/abort/general.any.js.ini @@ -5,13 +5,45 @@ expected: ERROR [general.any.html] - expected: TIMEOUT [Aborting rejects with AbortError] expected: FAIL [Aborting rejects with AbortError - no-cors] 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 @@ -45,6 +77,9 @@ [Signal retained after unrelated properties are overridden by fetch] expected: FAIL + [Signal removed by setting to null] + expected: FAIL + [Already aborted signal rejects immediately] expected: FAIL @@ -85,31 +120,31 @@ expected: FAIL [Fetch aborted & connection closed when aborted after calling response.arrayBuffer()] - expected: TIMEOUT + expected: FAIL [Fetch aborted & connection closed when aborted after calling response.blob()] - expected: NOTRUN + expected: FAIL [Fetch aborted & connection closed when aborted after calling response.formData()] - expected: NOTRUN + expected: FAIL [Fetch aborted & connection closed when aborted after calling response.json()] - expected: NOTRUN + expected: FAIL [Fetch aborted & connection closed when aborted after calling response.text()] - expected: NOTRUN + expected: FAIL [Stream errors once aborted. Underlying connection closed.] - expected: NOTRUN + expected: FAIL [Stream errors once aborted, after reading. Underlying connection closed.] - expected: NOTRUN + expected: FAIL [Stream will not error if body is empty. It's closed with an empty queue before it errors.] - expected: NOTRUN + expected: FAIL [Readable stream synchronously cancels with AbortError if aborted before reading] - expected: NOTRUN + expected: FAIL [Signal state is cloned] expected: FAIL @@ -125,13 +160,45 @@ [general.any.worker.html] - expected: TIMEOUT [Aborting rejects with AbortError] expected: FAIL [Aborting rejects with AbortError - no-cors] 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 @@ -165,6 +232,9 @@ [Signal retained after unrelated properties are overridden by fetch] expected: FAIL + [Signal removed by setting to null] + expected: FAIL + [Already aborted signal rejects immediately] expected: FAIL @@ -205,31 +275,31 @@ expected: FAIL [Fetch aborted & connection closed when aborted after calling response.arrayBuffer()] - expected: TIMEOUT + expected: FAIL [Fetch aborted & connection closed when aborted after calling response.blob()] - expected: NOTRUN + expected: FAIL [Fetch aborted & connection closed when aborted after calling response.formData()] - expected: NOTRUN + expected: FAIL [Fetch aborted & connection closed when aborted after calling response.json()] - expected: NOTRUN + expected: FAIL [Fetch aborted & connection closed when aborted after calling response.text()] - expected: NOTRUN + expected: FAIL [Stream errors once aborted. Underlying connection closed.] - expected: NOTRUN + expected: FAIL [Stream errors once aborted, after reading. Underlying connection closed.] - expected: NOTRUN + expected: FAIL [Stream will not error if body is empty. It's closed with an empty queue before it errors.] - expected: NOTRUN + expected: FAIL [Readable stream synchronously cancels with AbortError if aborted before reading] - expected: NOTRUN + expected: FAIL [Signal state is cloned] expected: FAIL diff --git a/tests/wpt/meta/fetch/api/abort/keepalive.html.ini b/tests/wpt/meta/fetch/api/abort/keepalive.html.ini index 46b5a14febd..a96fc65ae90 100644 --- a/tests/wpt/meta/fetch/api/abort/keepalive.html.ini +++ b/tests/wpt/meta/fetch/api/abort/keepalive.html.ini @@ -1,7 +1,2 @@ [keepalive.html] - expected: TIMEOUT - [aborting a keepalive fetch should work] - expected: TIMEOUT - - [aborting a detached keepalive fetch should not do anything] - expected: NOTRUN + expected: ERROR diff --git a/tests/wpt/meta/fetch/api/abort/request.any.js.ini b/tests/wpt/meta/fetch/api/abort/request.any.js.ini index 5d7ed4a13cf..a39255f79d7 100644 --- a/tests/wpt/meta/fetch/api/abort/request.any.js.ini +++ b/tests/wpt/meta/fetch/api/abort/request.any.js.ini @@ -1,7 +1,25 @@ [request.any.html] + [Calling arrayBuffer() on an aborted request] + expected: FAIL + + [Aborting a request after calling arrayBuffer()] + expected: FAIL + + [Calling arrayBuffer() on an aborted consumed empty request] + expected: FAIL + [Calling arrayBuffer() on an aborted consumed nonempty request] expected: FAIL + [Calling blob() on an aborted request] + expected: FAIL + + [Aborting a request after calling blob()] + expected: FAIL + + [Calling blob() on an aborted consumed empty request] + expected: FAIL + [Calling blob() on an aborted consumed nonempty request] expected: FAIL @@ -11,9 +29,27 @@ [Aborting a request after calling formData()] expected: FAIL + [Calling formData() on an aborted consumed nonempty request] + expected: FAIL + + [Calling json() on an aborted request] + expected: FAIL + + [Aborting a request after calling json()] + expected: FAIL + [Calling json() on an aborted consumed nonempty request] expected: FAIL + [Calling text() on an aborted request] + expected: FAIL + + [Aborting a request after calling text()] + expected: FAIL + + [Calling text() on an aborted consumed empty request] + expected: FAIL + [Calling text() on an aborted consumed nonempty request] expected: FAIL @@ -25,9 +61,27 @@ expected: ERROR [request.any.worker.html] + [Calling arrayBuffer() on an aborted request] + expected: FAIL + + [Aborting a request after calling arrayBuffer()] + expected: FAIL + + [Calling arrayBuffer() on an aborted consumed empty request] + expected: FAIL + [Calling arrayBuffer() on an aborted consumed nonempty request] expected: FAIL + [Calling blob() on an aborted request] + expected: FAIL + + [Aborting a request after calling blob()] + expected: FAIL + + [Calling blob() on an aborted consumed empty request] + expected: FAIL + [Calling blob() on an aborted consumed nonempty request] expected: FAIL @@ -37,8 +91,26 @@ [Aborting a request after calling formData()] expected: FAIL + [Calling formData() on an aborted consumed nonempty request] + expected: FAIL + + [Calling json() on an aborted request] + expected: FAIL + + [Aborting a request after calling json()] + expected: FAIL + [Calling json() on an aborted consumed nonempty request] expected: FAIL + [Calling text() on an aborted request] + expected: FAIL + + [Aborting a request after calling text()] + expected: FAIL + + [Calling text() on an aborted consumed empty request] + expected: FAIL + [Calling text() on an aborted consumed nonempty request] expected: FAIL |