diff --git a/test/wpt/server/server.mjs b/test/wpt/server/server.mjs index a83651d38ac..e0bb44b534a 100644 --- a/test/wpt/server/server.mjs +++ b/test/wpt/server/server.mjs @@ -43,10 +43,17 @@ const server = createServer({ joinDuplicateHeaders: true }, async (req, res) => res.setHeader('content-type', 'text/html') // fall through } - case '/fetch/content-encoding/resources/big.text.gz': + case '/fetch/content-encoding/gzip/resources/big.text.gz': + case '/fetch/content-encoding/gzip/resources/foo.octetstream.gz': + case '/fetch/content-encoding/gzip/resources/foo.text.gz': + case '/fetch/content-encoding/br/resources/big.text.br': + case '/fetch/content-encoding/br/resources/foo.octetstream.br': + case '/fetch/content-encoding/br/resources/foo.text.br': + case '/fetch/content-encoding/zstd/resources/big.window.zst': + case '/fetch/content-encoding/zstd/resources/big.text.zst': + case '/fetch/content-encoding/zstd/resources/foo.octetstream.zst': + case '/fetch/content-encoding/zstd/resources/foo.text.zst': case '/service-workers/cache-storage/resources/simple.txt': - case '/fetch/content-encoding/resources/foo.octetstream.gz': - case '/fetch/content-encoding/resources/foo.text.gz': case '/fetch/api/resources/cors-top.txt': case '/fetch/api/resources/top.txt': case '/mimesniff/mime-types/resources/generated-mime-types.json': @@ -327,11 +334,21 @@ const server = createServer({ joinDuplicateHeaders: true }, async (req, res) => break } - case '/fetch/content-encoding/resources/bad-gzip-body.py': { + case '/fetch/content-encoding/gzip/resources/bad-gzip-body.py': { res.setHeader('Content-Encoding', 'gzip') res.end('not actually gzip') break } + case '/fetch/content-encoding/br/resources/bad-br-body.py': { + res.setHeader('Content-Encoding', 'br') + res.end('not actually br') + break + } + case '/fetch/content-encoding/zstd/resources/bad-zstd-body.py': { + res.setHeader('Content-Encoding', 'zstd') + res.end('not actually zstd') + break + } case '/fetch/api/resources/dump-authorization-header.py': { res.setHeader('Content-Type', 'text/html') res.setHeader('Cache-Control', 'no-cache') diff --git a/test/wpt/server/websocket.mjs b/test/wpt/server/websocket.mjs index 6f91e1e5131..9776766bd62 100644 --- a/test/wpt/server/websocket.mjs +++ b/test/wpt/server/websocket.mjs @@ -7,6 +7,7 @@ import { server } from './server.mjs' // event, so I'm unsure if we can stop relying on server. const wss = new WebSocketServer({ + maxPayload: 1024 * 1024 * 1024, noServer: true, handleProtocols: (protocols) => protocols.values().next().value }) diff --git a/test/wpt/status/fetch.status.json b/test/wpt/status/fetch.status.json index 2557207bc88..209ec9ce713 100644 --- a/test/wpt/status/fetch.status.json +++ b/test/wpt/status/fetch.status.json @@ -389,16 +389,6 @@ "Consume empty FormData response body as text" ] }, - "response-consume-stream.any.js": { - "note": "only fail in node v18", - "flaky": [ - "Read blob response's body as readableStream with mode=byob", - "Read text response's body as readableStream with mode=byob", - "Read URLSearchParams response's body as readableStream with mode=byob", - "Read array buffer response's body as readableStream with mode=byob", - "Read form data response's body as readableStream with mode=byob" - ] - }, "response-stream-with-broken-then.any.js": { "note": "this is a bug in webstreams, see https://github.com/nodejs/node/issues/46786", "skip": true @@ -412,55 +402,8 @@ } }, "content-encoding": { - "br": { - "bad-br-body.https.any.js": { - "note": "TODO(@KhafraDev): investigate failure", - "fail": [ - "Consuming the body of a resource with bad br content with arrayBuffer() should reject" - ] - }, - "big-br-body.https.any.js": { - "note": "TODO(@KhafraDev): investigate failure", - "fail": [ - "large br data should be decompressed successfully", - "large br data should be decompressed successfully with byte stream" - ] - }, - "br-body.https.any.js": { - "note": "TODO(@KhafraDev): investigate failure", - "fail": [ - "fetched br data with content type text should be decompressed.", - "fetched br data with content type octetstream should be decompressed." - ] - } - }, - "gzip": { - "bad-gzip-body.any.js": { - "note": "TODO(@KhafraDev): investigate failure", - "fail": [ - "Consuming the body of a resource with bad gzip content with arrayBuffer() should reject", - "Consuming the body of a resource with bad gzip content with blob() should reject", - "Consuming the body of a resource with bad gzip content with json() should reject", - "Consuming the body of a resource with bad gzip content with text() should reject" - ] - }, - "gzip-body.any.js": { - "note": "TODO(@KhafraDev): investigate failure", - "fail": [ - "fetched gzip data with content type text should be decompressed.", - "fetched gzip data with content type octetstream should be decompressed." - ] - }, - "big-gzip-body.https.any.js": { - "note": "TODO(@KhafraDev): investigate failure", - "fail": [ - "large gzip data should be decompressed successfully", - "large gzip data should be decompressed successfully with byte stream" - ] - } - }, "zstd": { - "note": "node does not have zstd yet", + "note": "Node.js v23.8.0+ and v22.15.0+ (but older version 'Segmentation fault')", "skip": true } }, diff --git a/test/wpt/status/websockets.status.json b/test/wpt/status/websockets.status.json index 920501e0d4c..c2ffcdf9715 100644 --- a/test/wpt/status/websockets.status.json +++ b/test/wpt/status/websockets.status.json @@ -18,6 +18,10 @@ "flaky": [ "abort during handshake should work" ] + }, + "write.any.js": { + "note": "TODO: investigate failure", + "skip": true } } },