From 1e5b48d17aafe44fb6b9bb5c5e76ce81c425d1eb Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 22 Feb 2023 17:40:43 +0100 Subject: [PATCH] test: fix default WPT titles --- test/common/wpt.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/common/wpt.js b/test/common/wpt.js index 8a4482de7142af..964862248c91c9 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -781,6 +781,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);