test: remove useless WPT init scripts

PR-URL: https://github.com/nodejs/node/pull/46801
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
Filip Skokan 2023-02-25 18:03:18 +01:00 committed by GitHub
parent 620fd3b030
commit 2e5cb5b1f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 17 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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();