From f88b581f23b7f763563061809efcdd59b352604c 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/46778 Reviewed-By: Tobias Nießen Reviewed-By: Yagiz Nizipli Backport-PR-URL: https://github.com/nodejs/node/pull/46767 --- test/common/wpt.js | 3 +++ 1 file changed, 3 insertions(+) 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);