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); diff --git a/test/wpt/status/dom/events.json b/test/wpt/status/dom/events.json index 95fbda98402b14..103403af5da6ca 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 3", - "Untitled 4" + "Event constructors 3", + "Event constructors 4" ] } },