From 4fb2fc75362578d7e8ffbbfb1df1f21f63875148 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Tue, 7 Feb 2023 11:39:36 +0100 Subject: [PATCH] test: enable api-invalid-label.any.js in encoding WPTs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/46506 Reviewed-By: Michaël Zasso Reviewed-By: Tobias Nießen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- 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; `);