Skip to content

Commit 880bc55

Browse files
committed
test: fix WPT title when no META title is present
PR-URL: nodejs#46804 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Richard Lau <[email protected]> Backport-PR-URL: nodejs#46767
1 parent b8a0697 commit 880bc55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common/wpt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ class WPTRunner {
693693

694694
getTestTitle(filename) {
695695
const spec = this.specMap.get(filename);
696-
return spec.meta?.title || filename;
696+
return spec.meta?.title || filename.split('.')[0];
697697
}
698698

699699
// Map WPT test status to strings

0 commit comments

Comments
 (0)