Skip to content

Commit

Permalink
test: enable the WPT for structuredClone
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
daeyeon authored and danielleadams committed Jan 3, 2023
1 parent 7d26bf3 commit 9f1e5b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion test/wpt/status/html/webappapis/structured-clone.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"structured-clone.any.js": {
"skip": "Missing File API"
"fail": {
"expected": ["File basic"]
}
}
}
4 changes: 2 additions & 2 deletions test/wpt/test-structured-clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('html/webappapis/structured-clone');

runner.setInitScript(`
const { Blob } = require('buffer');
global.Blob = Blob;
const { File } = require('buffer');
globalThis.File = File;
`);

runner.runJsTests();

0 comments on commit 9f1e5b6

Please sign in to comment.