Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1750634] Add WPT Test for Stream Object globals #32649

Merged
merged 1 commit into from Feb 3, 2022

Conversation

moz-wptsync-bot
Copy link
Collaborator

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: 00d4eefcf59bda521a129e82b4fdca832cb3a6b1
gecko-reviewers: smaug, saschanaz

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants