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

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎test/common/wpt.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,9 @@ class WPTRunner {
781781
resultCallback(filename,test,reportResult){
782782
conststatus=this.getTestStatus(test.status);
783783
consttitle=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)