Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions test/wpt/server/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions test/wpt/server/websocket.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down
59 changes: 1 addition & 58 deletions test/wpt/status/fetch.status.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
},
Expand Down
4 changes: 4 additions & 0 deletions test/wpt/status/websockets.status.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"flaky": [
"abort during handshake should work"
]
},
"write.any.js": {
"note": "TODO: investigate failure",
"skip": true
}
}
},
Expand Down
Loading