Skip to content

Commit cc48816

Browse files
targosdanielleadams
authored andcommitted
test: fix WPT URL tests that fetch JSON data
PR-URL: #37624 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent b0ed1e7 commit cc48816

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/common/wpt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ class WPTRunner {
366366
const worker = new Worker(workerPath, {
367367
execArgv: this.flags,
368368
workerData: {
369-
filename: testFileName,
369+
testRelativePath: relativePath,
370370
wptRunner: __filename,
371371
wptPath: this.path,
372372
initScript: this.initScript,

test/common/wpt/worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ global.require = require;
1818
// in Node.js, but some tests and harness depend on this to pull
1919
// resources.
2020
global.fetch = function fetch(file) {
21-
return resource.read(workerData.filename, file, true);
21+
return resource.read(workerData.testRelativePath, file, true);
2222
};
2323

2424
if (workerData.initScript) {

test/wpt/status/url.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"fail": "FormData is not defined"
2121
},
2222
"url-constructor.any.js": {
23-
"fail": "TODO: support relative fetch()"
23+
"requires": ["small-icu"]
2424
},
2525
"url-origin.any.js": {
26-
"fail": "TODO: support relative fetch()"
26+
"requires": ["small-icu"]
2727
}
2828
}

0 commit comments

Comments
 (0)