From 928b206acb9804845ccbb15ba67a259a939593d3 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 23 Feb 2023 19:07:10 +0100 Subject: [PATCH] test: fix WPT title when no META title is present --- test/common/wpt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/wpt.js b/test/common/wpt.js index 964862248c91c9..e2e5ff1bfdae94 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -752,7 +752,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