From 7b0407d103f8ce9da6b9a6bbe560bc59eb49466b Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sat, 4 Feb 2023 21:58:07 +0100 Subject: [PATCH] test: enable api-invalid-label.any.js in encoding WPTs --- test/wpt/status/encoding.json | 5 +---- test/wpt/test-encoding.js | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/wpt/status/encoding.json b/test/wpt/status/encoding.json index 411bc3401b04c1..f39fc321f2a210 100644 --- a/test/wpt/status/encoding.json +++ b/test/wpt/status/encoding.json @@ -2,9 +2,6 @@ "api-basics.any.js": { "requires": ["small-icu"] }, - "api-invalid-label.any.js": { - "skip": "location is not defined" - }, "textdecoder-fatal-streaming.any.js": { "requires": ["small-icu"] }, @@ -91,7 +88,7 @@ "requires": ["small-icu"] }, "single-byte-decoder.window.js": { - "skip": "location is not defined" + "skip": "document is not defined" }, "textdecoder-eof.any.js": { "requires": ["small-icu"] diff --git a/test/wpt/test-encoding.js b/test/wpt/test-encoding.js index b297648d9cb7ee..901f53e00e22f0 100644 --- a/test/wpt/test-encoding.js +++ b/test/wpt/test-encoding.js @@ -4,6 +4,7 @@ const { WPTRunner } = require('../common/wpt'); const runner = new WPTRunner('encoding'); runner.setInitScript(` + globalThis.location ||= {}; const { MessageChannel } = require('worker_threads'); global.MessageChannel = MessageChannel; `);