From b2cfcf9cd86f66ed75f08daeb6979e0be2537a13 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 --- 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);