Skip to content

Commit 0d1485b

Browse files
panvaBethGriggs
authored andcommitted
test: fix default WPT titles
PR-URL: #46778 Backport-PR-URL: #46768 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 088e9cd commit 0d1485b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/common/wpt.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,9 @@ class WPTRunner {
722722
resultCallback(filename, test, reportResult) {
723723
const status = this.getTestStatus(test.status);
724724
const title = this.getTestTitle(filename);
725+
if (/^Untitled( \d+)?$/.test(test.name)) {
726+
test.name = `${title}${test.name.slice(8)}`;
727+
}
725728
console.log(`---- ${title} ----`);
726729
if (status !== kPass) {
727730
this.fail(filename, test, status, reportResult);

test/wpt/status/dom/events.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"Event-constructors.any.js": {
2020
"fail": {
2121
"expected": [
22-
"Untitled 2",
23-
"Untitled 3"
22+
"Event constructors 2",
23+
"Event constructors 3"
2424
]
2525
}
2626
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy