Skip to content

Commit 1bc5df6

Browse files
committed
test: fix default WPT titles
PR-URL: nodejs#46778 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Backport-PR-URL: nodejs#46768
1 parent 0dbc4c2 commit 1bc5df6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/common/wpt.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,9 @@ class WPTRunner {
722722
resultCallback(filename, test, reportResult) {
723723
const status = this.getTestStatus(test.status);
724724
const title = this.getTestTitle(filename);
725+
if (/^Untitled( \d+)?$/.test(test.name)) {
726+
test.name = `${title}${test.name.slice(8)}`;
727+
}
725728
console.log(`---- ${title} ----`);
726729
if (status !== kPass) {
727730
this.fail(filename, test, status, reportResult);

0 commit comments

Comments
 (0)