Skip to content

Commit

Permalink
test: fix WPT title when no META title is present
Browse files Browse the repository at this point in the history
PR-URL: nodejs#46804
Backport-PR-URL: nodejs#46767
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
panva authored and juanarbol committed Mar 5, 2023
1 parent 162e340 commit de64315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ class WPTRunner {

getTestTitle(filename) {
const spec = this.specMap.get(filename);
return spec.meta?.title || filename;
return spec.meta?.title || filename.split('.')[0];
}

// Map WPT test status to strings
Expand Down

0 comments on commit de64315

Please sign in to comment.