Skip to content

Commit 08ade9b

Browse files
joyeecheungMylesBorins
authored andcommitted
test: clarify the path relativeness of WPT runner classes
PR-URL: #25616 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gus Caplan <[email protected]>
1 parent 74ee8d3 commit 08ade9b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/common/wpt.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,15 @@ class StatusRuleSet {
127127

128128
class WPTTest {
129129
/**
130-
* @param {string} mod
131-
* @param {string} filename
130+
* @param {string} mod name of the WPT module, e.g.
131+
* 'html/webappapis/microtask-queuing'
132+
* @param {string} filename path of the test, relative to mod, e.g.
133+
* 'test.any.js'
132134
* @param {StatusRule[]} rules
133135
*/
134136
constructor(mod, filename, rules) {
135-
this.module = mod; // name of the WPT module, e.g. 'url'
136-
this.filename = filename; // name of the test file
137+
this.module = mod;
138+
this.filename = filename;
137139

138140
this.requires = new Set();
139141
this.failReasons = [];
@@ -204,6 +206,9 @@ const intlRequirements = new IntlRequirement();
204206

205207

206208
class StatusLoader {
209+
/**
210+
* @param {string} path relative path of the WPT subset
211+
*/
207212
constructor(path) {
208213
this.path = path;
209214
this.loaded = false;

0 commit comments

Comments
 (0)