Skip to content

Commit b2cfcf9

Browse files
panvatargos
authored andcommitted
test: fix default WPT titles
PR-URL: #46778 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 1b3a25e commit b2cfcf9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/common/wpt.js

+3
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,9 @@ class WPTRunner {
781781
resultCallback(filename, test, reportResult) {
782782
const status = this.getTestStatus(test.status);
783783
const title = this.getTestTitle(filename);
784+
if (/^Untitled( \d+)?$/.test(test.name)) {
785+
test.name = `${title}${test.name.slice(8)}`;
786+
}
784787
console.log(`---- ${title} ----`);
785788
if (status !== kPass) {
786789
this.fail(filename, test, status, reportResult);

0 commit comments

Comments
 (0)