diff options
Diffstat (limited to 'tools/wpt.ts')
-rwxr-xr-x | tools/wpt.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/wpt.ts b/tools/wpt.ts index ad30b95b4..b1067655c 100755 --- a/tools/wpt.ts +++ b/tools/wpt.ts @@ -679,6 +679,16 @@ function discoverTestsToRun( if (expectation === undefined) continue; + if (typeof expectation === "object") { + if (typeof expectation.ignore !== "undefined") { + assert( + typeof expectation.ignore === "boolean", + "test entry's `ignore` key must be a boolean", + ); + if (expectation.ignore === true) continue; + } + } + assert( Array.isArray(expectation) || typeof expectation == "boolean", "test entry must not have a folder expectation", |