summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Skokan <panva.ip@gmail.com>2023-02-22 17:40:43 +0100
committerBeth Griggs <bethanyngriggs@gmail.com>2023-03-23 20:03:10 +0000
commit0d1485b92423d9b4d2bce151aaca4f2995fa1b90 (patch)
tree93cea3e7103a4485b69c99c4f4f3daa509dc0ab2
parent088e9cde3d4701c0e51a688c6521ecdedead5d5c (diff)
downloadnode-new-0d1485b92423d9b4d2bce151aaca4f2995fa1b90.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/46768 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.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 950e0ecd13..fdaacea072 100644
--- a/test/common/wpt.js
+++ b/test/common/wpt.js
@@ -722,6 +722,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 012b73f700..372de5e527 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 2",
- "Untitled 3"
+ "Event constructors 2",
+ "Event constructors 3"
]
}
},