Skip to content

Commit 162e340

Browse files
panvajuanarbol
authored andcommitted
test: fix default WPT titles
PR-URL: #46778 Backport-PR-URL: #46767 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 5f422c4 commit 162e340

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
@@ -724,6 +724,9 @@ class WPTRunner {
724724
resultCallback(filename, test, reportResult) {
725725
const status = this.getTestStatus(test.status);
726726
const title = this.getTestTitle(filename);
727+
if (/^Untitled( \d+)?$/.test(test.name)) {
728+
test.name = `${title}${test.name.slice(8)}`;
729+
}
727730
console.log(`---- ${title} ----`);
728731
if (status !== kPass) {
729732
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 3",
23-
"Untitled 4"
22+
"Event constructors 3",
23+
"Event constructors 4"
2424
]
2525
}
2626
},

0 commit comments

Comments
 (0)