diff --git a/test/common/wpt.js b/test/common/wpt.js index 950e0ecd135bcd..fdaacea0720f26 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -722,6 +722,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); diff --git a/test/wpt/status/dom/events.json b/test/wpt/status/dom/events.json index 012b73f70001ae..372de5e5273315 100644 --- a/test/wpt/status/dom/events.json +++ b/test/wpt/status/dom/events.json @@ -19,8 +19,8 @@ "Event-constructors.any.js": { "fail": { "expected": [ - "Untitled 2", - "Untitled 3" + "Event constructors 2", + "Event constructors 3" ] } },