diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2021-03-27 15:49:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 15:49:57 +0100 |
commit | b11249647fa14e482881fd22446dbd8b0cbac27c (patch) | |
tree | 36e41a2b72673864d511f401833d8340c74a0049 | |
parent | 940b3a26bde813c43cc156141c2366cacd827e77 (diff) |
fix: update wpt + align AbortController (#9907)
-rw-r--r-- | op_crates/web/03_abort_signal.js | 6 | ||||
m--------- | test_util/wpt | 0 | ||||
-rw-r--r-- | tools/wpt/expectation.json | 24 |
3 files changed, 20 insertions, 10 deletions
diff --git a/op_crates/web/03_abort_signal.js b/op_crates/web/03_abort_signal.js index 3090513eb..693b5342a 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 -Subproject 182191819bbfdc409bf5f29a5ea3bedb4545b91 +Subproject 681d273a49e7b5228394285b0c017f1b4c0d33b diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 4dc968fae..852f488a3 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: <http://example.com/\ud800\udfff﷏ﷰ?\ud800\udfff﷏ﷰ> against <about:blank>", + "Parsing: <file://%43%7C> against <about:blank>", + "Parsing: <file://%43|> against <about:blank>", + "Parsing: <file://C%7C> against <about:blank>", + "Parsing: <file://%43%7C/> against <about:blank>", + "Parsing: <https://%43%7C/> against <about:blank>", + "Parsing: <asdf://%43|/> against <about:blank>", "Parsing: </> against <file://h/C:/a/b>", "Parsing: <file:\\\\//> against <about:blank>", "Parsing: <file:\\\\\\\\> against <about:blank>", @@ -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 |