From 53cf53c95a16c3681446aee68451d620638c9c44 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 6 Aug 2021 17:30:49 -0700 Subject: [PATCH] test: enable blob.prototype.stream tests Signed-off-by: James M Snell PR-URL: https://github.com/nodejs/node/pull/39693 Reviewed-By: Anna Henningsen Reviewed-By: Benjamin Gruenbaum Reviewed-By: Bradley Farias Reviewed-By: Stephen Belanger --- test/wpt/status/FileAPI/blob.json | 3 --- test/wpt/test-blob.js | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/wpt/status/FileAPI/blob.json b/test/wpt/status/FileAPI/blob.json index c4b809b3b4036d..64163961e04b21 100644 --- a/test/wpt/status/FileAPI/blob.json +++ b/test/wpt/status/FileAPI/blob.json @@ -8,9 +8,6 @@ "Blob-slice.any.js": { "skip": "Depends on File API" }, - "Blob-stream.any.js": { - "skip": "Depends on Web Streams API" - }, "Blob-in-worker.worker.js": { "skip": "Depends on Web Workers API" } diff --git a/test/wpt/test-blob.js b/test/wpt/test-blob.js index 92e18bc0ef2f22..0614c2d3fe36f1 100644 --- a/test/wpt/test-blob.js +++ b/test/wpt/test-blob.js @@ -7,7 +7,9 @@ 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();