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 14, 2023
1 parent 4b91420 commit e5fa7a1
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 e5fa7a1

Please sign in to comment.