summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Skokan <panva.ip@gmail.com>2023-02-22 17:40:43 +0100
committerJuan José Arboleda <soyjuanarbol@gmail.com>2023-03-04 23:03:34 -0500
commit162e3400ffeb110d6912d33953e5f17e981d1b0d (patch)
tree9dab62d8007807104f1f7b55094656ec9df0e103
parent5f422c4d705a8adc63c5cf6526818e5d7189d3f5 (diff)
downloadnode-new-162e3400ffeb110d6912d33953e5f17e981d1b0d.tar.gz
test: fix default WPT titles
PR-URL: https://github.com/nodejs/node/pull/46778 Backport-PR-URL: https://github.com/nodejs/node/pull/46767 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Richard Lau <rlau@redhat.com>
-rw-r--r--test/common/wpt.js3
-rw-r--r--test/wpt/status/dom/events.json4
2 files changed, 5 insertions, 2 deletions
diff --git a/test/common/wpt.js b/test/common/wpt.js
index 9edeff22a8..b5bc85d206 100644
--- a/test/common/wpt.js
+++ b/test/common/wpt.js
@@ -724,6 +724,9 @@ class WPTRunner {
resultCallback(filename, test, reportResult) {
const status = this.getTestStatus(test.status);
const title = this.getTestTitle(filename);
+ if (/^Untitled( \d+)?$/.test(test.name)) {
+ test.name = `${title}${test.name.slice(8)}`;
+ }
console.log(`---- ${title} ----`);
if (status !== kPass) {
this.fail(filename, test, status, reportResult);
diff --git a/test/wpt/status/dom/events.json b/test/wpt/status/dom/events.json
index 95fbda9840..103403af5d 100644
--- a/test/wpt/status/dom/events.json
+++ b/test/wpt/status/dom/events.json
@@ -19,8 +19,8 @@
"Event-constructors.any.js": {
"fail": {
"expected": [
- "Untitled 3",
- "Untitled 4"
+ "Event constructors 3",
+ "Event constructors 4"
]
}
},