diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-09-27 23:32:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 23:32:17 +0200 |
commit | abdb6aad6e3e9aa8b6943eba1bbe297f34a825f4 (patch) | |
tree | 80c8964879f5174a87e05a3668993041577807a7 /tools/wpt.ts | |
parent | 212b7dd6da487c070229b6348ec7907b4fecbcf9 (diff) |
chore(wpt): add ability to ignore a test file (#16056)
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", |