Skip to content

Commit

Permalink
test: fix WPT URL tests that fetch JSON data
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Mar 8, 2021
1 parent 1468c9f commit 5295032
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/common/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class WPTRunner {
const worker = new Worker(workerPath, {
execArgv: this.flags,
workerData: {
filename: testFileName,
testRelativePath: relativePath,
wptRunner: __filename,
wptPath: this.path,
initScript: this.initScript,
Expand Down
2 changes: 1 addition & 1 deletion test/common/wpt/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ global.require = require;
// in Node.js, but some tests and harness depend on this to pull
// resources.
global.fetch = function fetch(file) {
return resource.read(workerData.filename, file, true);
return resource.read(workerData.testRelativePath, file, true);
};

if (workerData.initScript) {
Expand Down
5 changes: 1 addition & 4 deletions test/wpt/status/url.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
"fail": "FormData is not defined"
},
"url-constructor.any.js": {
"fail": "TODO: support relative fetch()"
},
"url-origin.any.js": {
"fail": "TODO: support relative fetch()"
"requires": ["small-icu"]
}
}

0 comments on commit 5295032

Please sign in to comment.