Skip to content

Commit 058f290

Browse files
Meta: update WPT tests to ToT
We skip two test files until the test infra and the spec/ref implementation gets updated. Co-authored-by: Mattias Buelens <[email protected]>
1 parent eba8c79 commit 058f290

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
submodules: true
2020
- uses: actions/setup-node@v1
2121
with:
22-
node-version: 14
22+
node-version: 18
2323
- run: npm install
2424
- run: npm test

reference-implementation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"minimatch": "^3.0.4",
2020
"opener": "^1.5.1",
2121
"webidl2js": "^16.2.0",
22-
"wpt-runner": "^4.0.0"
22+
"wpt-runner": "^5.0.0"
2323
}
2424
}

reference-implementation/run-web-platform-tests.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@ async function main() {
3333

3434
const filterGlobs = process.argv.length >= 3 ? process.argv.slice(2) : ['**/*.html'];
3535
const excludeGlobs = [
36+
'piping/general-addition.any.html', // FIXME: reenable this test as part of https://github.com/whatwg/streams/issues/1243.
3637
// These tests use ArrayBuffers backed by WebAssembly.Memory objects, which *should* be non-transferable.
3738
// However, our TransferArrayBuffer implementation cannot detect these, and will incorrectly "transfer" them anyway.
38-
'readable-byte-streams/non-transferable-buffers.any.html'
39+
'readable-byte-streams/non-transferable-buffers.any.html',
40+
'readable-streams/owning-type-message-port.any.html', // disabled due to MessagePort use.
41+
'readable-streams/owning-type-video-frame.any.html', // disabled due to VideoFrame use.
42+
'readable-streams/owning-type.any.html', // FIXME: reenable this test once owning type PR lands.
43+
'transferable/transform-stream-members.any.html' // FIXME: reenable if structuredClone is aligned.
3944
];
4045
const anyTestPattern = /\.any\.html$/;
4146

@@ -46,6 +51,7 @@ async function main() {
4651
rootURL: 'streams/',
4752
setup(window) {
4853
window.queueMicrotask = queueMicrotask;
54+
window.structuredClone = globalThis.structuredClone;
4955
window.fetch = async function (url) {
5056
const filePath = path.join(wptPath, url);
5157
if (!filePath.startsWith(wptPath)) {

0 commit comments

Comments
 (0)