mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: fix default WPT titles
PR-URL: https://github.com/nodejs/node/pull/46778 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
1 parent
1b3a25ef22
commit
b2cfcf9cd8
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user