Skip to content

Commit

Permalink
test: remove useless WPT init scripts
Browse files Browse the repository at this point in the history
PR-URL: #46801
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
panva authored and danielleadams committed Apr 11, 2023
1 parent 61c9433 commit 928998d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
7 changes: 0 additions & 7 deletions test/wpt/test-blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,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();
5 changes: 0 additions & 5 deletions test/wpt/test-broadcastchannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,4 @@ const { WPTRunner } = require('../common/wpt');

const runner = new WPTRunner('webmessaging/broadcastchannel');

runner.setInitScript(`
const { BroadcastChannel } = require('worker_threads');
global.BroadcastChannel = BroadcastChannel;
`);

runner.runJsTests();
6 changes: 0 additions & 6 deletions test/wpt/test-encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@ require('../common');
const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('encoding');

runner.setInitScript(`
globalThis.location ||= {};
const { MessageChannel } = require('worker_threads');
global.MessageChannel = MessageChannel;
`);

runner.runJsTests();

0 comments on commit 928998d

Please sign in to comment.