Skip to content

Commit 7e5d16c

Browse files
committed
fixup! test: add opt-in process WPT runner
1 parent 9828419 commit 7e5d16c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/common/wpt.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,10 @@ class WPTTestSpec {
469469
return true;
470470
}
471471
const [filename, variant = ''] = arg.split('?');
472-
return filename === this.filename &&
472+
// Spec filenames are relative paths, so they use the platform separator,
473+
// while the argument is written with forward slashes.
474+
return filename.split(path.sep).join('/') ===
475+
this.filename.split(path.sep).join('/') &&
473476
(!variant || this.variant.substring(1) === variant);
474477
}
475478

0 commit comments

Comments
 (0)