summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Skokan <panva.ip@gmail.com>2023-02-25 19:19:08 +0100
committerBeth Griggs <bethanyngriggs@gmail.com>2023-03-23 20:03:28 +0000
commitcf76d0790d05f057a7b495aec627359e4efafcd1 (patch)
treead229995efc3eb175cd14b7f6c94fa6638ee09cd
parent0d1485b92423d9b4d2bce151aaca4f2995fa1b90 (diff)
downloadnode-new-cf76d0790d05f057a7b495aec627359e4efafcd1.tar.gz
test: fix WPT title when no META title is present
PR-URL: https://github.com/nodejs/node/pull/46804 Backport-PR-URL: https://github.com/nodejs/node/pull/46768 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Richard Lau <rlau@redhat.com>
-rw-r--r--test/common/wpt.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common/wpt.js b/test/common/wpt.js
index fdaacea072..91f10e569d 100644
--- a/test/common/wpt.js
+++ b/test/common/wpt.js
@@ -693,7 +693,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