From 2e5cb5b1f73c5c31c598993d9a29555baf77b5ad Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sat, 25 Feb 2023 18:03:18 +0100 Subject: [PATCH] test: remove useless WPT init scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/46801 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso --- test/wpt/test-blob.js | 7 ------- test/wpt/test-broadcastchannel.js | 5 ----- test/wpt/test-encoding.js | 5 ----- 3 files changed, 17 deletions(-) diff --git a/test/wpt/test-blob.js b/test/wpt/test-blob.js index 1d6871ce27933f..9027516ec619f4 100644 --- a/test/wpt/test-blob.js +++ b/test/wpt/test-blob.js @@ -4,11 +4,4 @@ const { WPTRunner } = require('../common/wpt'); const runner = new WPTRunner('FileAPI/blob'); -runner.setInitScript(` - const { Blob } = require('buffer'); - const { ReadableStream } = require('stream/web'); - global.Blob = Blob; - global.ReadableStream = ReadableStream; -`); - runner.runJsTests(); diff --git a/test/wpt/test-broadcastchannel.js b/test/wpt/test-broadcastchannel.js index 586343ed8221dc..6757e1429fc5c4 100644 --- a/test/wpt/test-broadcastchannel.js +++ b/test/wpt/test-broadcastchannel.js @@ -4,9 +4,4 @@ const { WPTRunner } = require('../common/wpt'); const runner = new WPTRunner('webmessaging/broadcastchannel'); -runner.setInitScript(` - const { BroadcastChannel } = require('worker_threads'); - global.BroadcastChannel = BroadcastChannel; -`); - runner.runJsTests(); diff --git a/test/wpt/test-encoding.js b/test/wpt/test-encoding.js index 7aeddfefe450e8..af20760bd533d3 100644 --- a/test/wpt/test-encoding.js +++ b/test/wpt/test-encoding.js @@ -3,9 +3,4 @@ const { WPTRunner } = require('../common/wpt'); const runner = new WPTRunner('encoding'); -runner.setInitScript(` - const { MessageChannel } = require('worker_threads'); - global.MessageChannel = MessageChannel; -`); - runner.runJsTests();