From f8fdaa082b16cfa63afa59a7d9dff87ddf9f7138 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Mon, 3 Jun 2024 05:47:47 +0900 Subject: chore: update wpt suite (#24070) --- tests/wpt/runner/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/wpt/runner/utils.ts') diff --git a/tests/wpt/runner/utils.ts b/tests/wpt/runner/utils.ts index 47f980833..52b95eefe 100644 --- a/tests/wpt/runner/utils.ts +++ b/tests/wpt/runner/utils.ts @@ -79,7 +79,7 @@ export function getManifest(): Manifest { const EXPECTATION_PATH = join(ROOT_PATH, "./tests/wpt/runner/expectation.json"); export interface Expectation { - [key: string]: Expectation | boolean | string[]; + [key: string]: Expectation | boolean | string[] | { ignore: boolean }; } export function getExpectation(): Expectation { @@ -90,7 +90,7 @@ export function getExpectation(): Expectation { export function saveExpectation(expectation: Expectation) { Deno.writeTextFileSync( EXPECTATION_PATH, - JSON.stringify(expectation, undefined, " "), + JSON.stringify(expectation, undefined, " ") + "\n", ); } @@ -99,7 +99,7 @@ export function getExpectFailForCase( caseName: string, ): boolean { if (noIgnore) return false; - if (typeof expectation == "boolean") { + if (typeof expectation === "boolean") { return !expectation; } return expectation.includes(caseName); -- cgit v1.2.3