Skip to content

Commit b491504

Browse files
daeyeonruyadorno
authored andcommitted
test: enable the WPT for structuredClone
So far, all `structuredClone` tests have been just skipped. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com> PR-URL: #45482 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent 117efe9 commit b491504

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"structured-clone.any.js": {
3-
"skip": "Missing File API"
3+
"fail": {
4+
"expected": ["File basic"]
5+
}
46
}
57
}

test/wpt/test-structured-clone.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const { WPTRunner } = require('../common/wpt');
66
const runner = new WPTRunner('html/webappapis/structured-clone');
77

88
runner.setInitScript(`
9-
const { Blob } = require('buffer');
10-
global.Blob = Blob;
9+
const { File } = require('buffer');
10+
globalThis.File = File;
1111
`);
1212

1313
runner.runJsTests();

0 commit comments

Comments
 (0)