Skip to content

Commit 0d1485b

Browse files
panvaBethGriggs
authored andcommittedMar 23, 2023
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

+3
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

+2-2
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)
Please sign in to comment.