Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: clarify the path relativeness of WPT runner classes
  • Loading branch information
joyeecheung committed Jan 21, 2019
commit 1558ebf915189ce82124aba534a5232dbe82fdb1
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