Skip to content

Commit

Permalink
test: clarify the path relativeness of WPT runner classes
Browse files Browse the repository at this point in the history
PR-URL: #25616
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
  • Loading branch information
joyeecheung authored and MylesBorins committed Jan 24, 2019
1 parent 74ee8d3 commit 08ade9b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/common/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,15 @@ class StatusRuleSet {

class WPTTest {
/**
* @param {string} mod
* @param {string} filename
* @param {string} mod name of the WPT module, e.g.
* 'html/webappapis/microtask-queuing'
* @param {string} filename path of the test, relative to mod, e.g.
* 'test.any.js'
* @param {StatusRule[]} rules
*/
constructor(mod, filename, rules) {
this.module = mod; // name of the WPT module, e.g. 'url'
this.filename = filename; // name of the test file
this.module = mod;
this.filename = filename;

this.requires = new Set();
this.failReasons = [];
Expand Down Expand Up @@ -204,6 +206,9 @@ const intlRequirements = new IntlRequirement();


class StatusLoader {
/**
* @param {string} path relative path of the WPT subset
*/
constructor(path) {
this.path = path;
this.loaded = false;
Expand Down

0 comments on commit 08ade9b

Please sign in to comment.