From b11249647fa14e482881fd22446dbd8b0cbac27c Mon Sep 17 00:00:00 2001 From: crowlKats <13135287+crowlKats@users.noreply.github.com> Date: Sat, 27 Mar 2021 15:49:57 +0100 Subject: [PATCH] fix: update wpt + align AbortController (#9907) --- op_crates/web/03_abort_signal.js | 6 ++++++ test_util/wpt | 2 +- tools/wpt/expectation.json | 24 ++++++++++++++---------- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/op_crates/web/03_abort_signal.js b/op_crates/web/03_abort_signal.js index 3090513eba..693b5342a6 100644 --- a/op_crates/web/03_abort_signal.js +++ b/op_crates/web/03_abort_signal.js @@ -14,6 +14,12 @@ #aborted = false; #abortAlgorithms = new Set(); + static abort() { + const signal = new AbortSignal(illegalConstructorKey); + signal[signalAbort](); + return signal; + } + [add](algorithm) { this.#abortAlgorithms.add(algorithm); } diff --git a/test_util/wpt b/test_util/wpt index 182191819b..681d273a49 160000 --- a/test_util/wpt +++ b/test_util/wpt @@ -1 +1 @@ -Subproject commit 182191819bbfdc409bf5f29a5ea3bedb4545b91e +Subproject commit 681d273a49e7b5228394285b0c017f1b4c0d33b0 diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 4dc968fae9..852f488a35 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -353,7 +353,9 @@ "default-reader.any.js": true, "floating-point-total-queue-size.any.js": true, "garbage-collection.any.js": true, - "general.any.js": true, + "general.any.js": [ + "ReadableStream: if pull rejects, it should error the stream" + ], "patched-global.any.js": true, "reentrant-strategies.any.js": true, "tee.any.js": true, @@ -367,7 +369,9 @@ "flush.any.js": true, "general.any.js": true, "lipfuzz.any.js": true, - "patched-global.any.js": false, + "patched-global.any.js": [ + "TransformStream constructor should not call setters for highWaterMark or size" + ], "properties.any.js": true, "reentrant-strategies.any.js": true, "strategies.any.js": true, @@ -630,6 +634,12 @@ "idlharness.any.js": false, "url-constructor.any.js": [ "Parsing: against ", + "Parsing: against ", + "Parsing: against ", + "Parsing: against ", + "Parsing: against ", + "Parsing: against ", + "Parsing: against ", "Parsing: against ", "Parsing: against ", "Parsing: against ", @@ -722,18 +732,12 @@ ], "urlsearchparams-append.any.js": true, "urlsearchparams-constructor.any.js": [ - "URLSearchParams constructor, empty string as argument", "Construct with 2 unpaired surrogates (no trailing)", "Construct with 3 unpaired surrogates (no leading)", "Construct with object with NULL, non-ASCII, and surrogate keys" ], "urlsearchparams-delete.any.js": true, - "urlsearchparams-foreach.any.js": [ - "For-of Check", - "delete next param during iteration", - "delete current param during iteration", - "delete every param seen during iteration" - ], + "urlsearchparams-foreach.any.js": true, "urlsearchparams-get.any.js": true, "urlsearchparams-getall.any.js": true, "urlsearchparams-has.any.js": true, @@ -794,4 +798,4 @@ } } } -} +} \ No newline at end of file