summaryrefslogtreecommitdiff
path: root/tests/wpt/runner/utils.ts
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2024-06-03 05:47:47 +0900
committerGitHub <noreply@github.com>2024-06-02 22:47:47 +0200
commitf8fdaa082b16cfa63afa59a7d9dff87ddf9f7138 (patch)
tree1da6c80aed65933962cd9bfb76e73c62f35792de /tests/wpt/runner/utils.ts
parent38ff9faff639385c10ccb6412470e1355c73327c (diff)
chore: update wpt suite (#24070)
Diffstat (limited to 'tests/wpt/runner/utils.ts')
-rw-r--r--tests/wpt/runner/utils.ts6
1 files changed, 3 insertions, 3 deletions
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);