From abdb6aad6e3e9aa8b6943eba1bbe297f34a825f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 27 Sep 2022 23:32:17 +0200 Subject: chore(wpt): add ability to ignore a test file (#16056) --- tools/wpt.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools/wpt.ts') 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", -- cgit v1.2.3