From 22cf03f214e6a6e124708fc241cfed7cad9ab13c Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Tue, 14 May 2024 22:20:37 +0000 Subject: [PATCH] Bug 1896059 [wpt PR 46198] - Add tests for bytes() method on Body mixin, a=testonly Automatic update from web-platform-tests Fetch: bytes() method on Body mixin For https://github.com/whatwg/fetch/pull/1753. -- wpt-commits: 1b9332c3c8a84d34e38271d29518c204ab2cfb6e wpt-pr: 46198 --- .../tests/fetch/api/abort/general.any.js | 2 +- .../serviceworker-intercepted.https.html | 2 +- .../fetch/api/request/request-consume.any.js | 14 +++++++++++ .../api/response/response-blob-realm.any.js | 23 +++++++++++++++++++ .../response-error-from-stream.any.js | 2 ++ .../response/response-stream-bad-chunk.any.js | 1 + 6 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 testing/web-platform/tests/fetch/api/response/response-blob-realm.any.js diff --git a/testing/web-platform/tests/fetch/api/abort/general.any.js b/testing/web-platform/tests/fetch/api/abort/general.any.js index 3727bb42afe4..139f08947b15 100644 --- a/testing/web-platform/tests/fetch/api/abort/general.any.js +++ b/testing/web-platform/tests/fetch/api/abort/general.any.js @@ -4,7 +4,7 @@ // META: script=/common/get-host-info.sub.js // META: script=../request/request-error.js -const BODY_METHODS = ['arrayBuffer', 'blob', 'formData', 'json', 'text']; +const BODY_METHODS = ['arrayBuffer', 'blob', 'bytes', 'formData', 'json', 'text']; const error1 = new Error('error1'); error1.name = 'error1'; diff --git a/testing/web-platform/tests/fetch/api/abort/serviceworker-intercepted.https.html b/testing/web-platform/tests/fetch/api/abort/serviceworker-intercepted.https.html index ed9bc973e80d..1867e205bb6e 100644 --- a/testing/web-platform/tests/fetch/api/abort/serviceworker-intercepted.https.html +++ b/testing/web-platform/tests/fetch/api/abort/serviceworker-intercepted.https.html @@ -11,7 +11,7 @@