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

Add tests for transferable streams #24546

Merged
merged 4 commits into from Oct 7, 2020

Conversation

ricea
Copy link
Contributor

@ricea ricea commented Jul 9, 2020

The Streams Standard change whatwg/streams#1053
adds the ability to transfer streams to a different realm using
postMessage(). Add tests for this feature.

The Streams Standard change whatwg/streams#1053
adds the ability to transfer streams to a different realm using
postMessage(). Add tests for this feature.
When a TransformStream fails to be transferred because one side is
locked, the other side should remain unlocked. Verify this.
@ricea
Copy link
Contributor Author

ricea commented Oct 6, 2020

@domenic Could you take a look at this?

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -0,0 +1,121 @@
'use strict';

// Create a ReadableStream that will pass the tests in
Copy link
Member

Choose a reason for hiding this comment

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

Nit: in other helper files I've preferred to use self.X = ... to make it clearer what is exported. Possibly even hiding non-exported values inside a closure, like https://github.com/web-platform-tests/wpt/blob/master/streams/resources/rs-utils.js does.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will fix this in a follow-up change.

@ricea ricea merged commit f2eb8b9 into web-platform-tests:master Oct 7, 2020
@ricea ricea deleted the transferable-stream-tests branch October 7, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants