From 60cda28d13e58cdcc32e9c536effe67a9e2a7659 Mon Sep 17 00:00:00 2001 From: Matthew Gaudet Date: Wed, 2 Feb 2022 16:35:47 +0000 Subject: [PATCH] Add WPT Test for Stream Object globals This test is based on the general structure of js/src/tests/non262/ReadableStream/readable-stream-globals.js, however the expectations have been commented and updated to match what we believe is the correct WebIDL behaviour. Not all the features of that test case have been ported over, as there's some stuff around the handling of Symbol.species that we can test elsewhere, and it attempts to test BYOB streams, which we have yet to implement. Note: I tried to initially write this as an xpcshell test case using Cu.sandbox; but I found that I wasn't geting global behaviour that matched my expectations from testing on the web. Differential Revision: https://phabricator.services.mozilla.com/D137492 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1750634 gecko-commit: 7b75650e5e0bcc300a409f54f664efc08ed0c7ba gecko-reviewers: smaug, saschanaz --- streams/readable-streams/global.html | 162 +++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 streams/readable-streams/global.html diff --git a/streams/readable-streams/global.html b/streams/readable-streams/global.html new file mode 100644 index 00000000000000..08665d318eac88 --- /dev/null +++ b/streams/readable-streams/global.html @@ -0,0 +1,162 @@ + + +Ensure Stream objects are created in expected globals. + + + + + +