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: #46804
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
  • Loading branch information
panva authored and targos committed Mar 13, 2023
1 parent 457cb35 commit 977fcc4
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 @@ -721,7 +721,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 977fcc4

Please sign in to comment.