Skip to content

Commit f88b581

Browse files
committed
test: fix default WPT titles
PR-URL: #46778 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Backport-PR-URL: #46767
1 parent 8812c56 commit f88b581

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
@@ -724,6 +724,9 @@ class WPTRunner {
724724
resultCallback(filename, test, reportResult) {
725725
const status = this.getTestStatus(test.status);
726726
const title = this.getTestTitle(filename);
727+
if (/^Untitled( \d+)?$/.test(test.name)) {
728+
test.name = `${title}${test.name.slice(8)}`;
729+
}
727730
console.log(`---- ${title} ----`);
728731
if (status !== kPass) {
729732
this.fail(filename, test, status, reportResult);

0 commit comments

Comments
 (0)