diff --git a/test/common/wpt.js b/test/common/wpt.js index 9edeff22a84554..b5bc85d20618f1 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -724,6 +724,9 @@ class WPTRunner { resultCallback(filename, test, reportResult) { const status = this.getTestStatus(test.status); const title = this.getTestTitle(filename); + if (/^Untitled( \d+)?$/.test(test.name)) { + test.name = `${title}${test.name.slice(8)}`; + } console.log(`---- ${title} ----`); if (status !== kPass) { this.fail(filename, test, status, reportResult);