Skip to content
Merged
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
fixup! test: refactor WPTRunner and enable parallel WPT execution
  • Loading branch information
panva committed Apr 25, 2023
commit ecd22cb82075c98b04974680f7ec950c6645c7a2
7 changes: 3 additions & 4 deletions test/common/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,17 +604,16 @@ class WPTRunner {
const absolutePath = spec.getAbsolutePath();
const relativePath = spec.getRelativePath();
const harnessPath = fixtures.path('wpt', 'resources', 'testharness.js');
const scriptsToRun = [];

// Scripts specified with the `// META: script=` header
meta.script?.forEach((script) => {
const scriptsToRun = meta.script?.map((script) => {
const obj = {
filename: this.resource.toRealFilePath(relativePath, script),
code: this.resource.read(relativePath, script),
};
this.scriptsModifier?.(obj);
scriptsToRun.push(obj);
});
return obj;
}) ?? [];
// The actual test
const obj = {
code: content,
Expand Down