Skip to content

Streams: Constructors property lookup order - #10461

Merged
ricea merged 1 commit into
web-platform-tests:masterfrom
ricea:streams-property-access-order
Apr 24, 2018
Merged

ricea merged 1 commit into
web-platform-tests:masterfrom
ricea:streams-property-access-order

Conversation

@ricea

@ricea ricea commented Apr 13, 2018 •

Copy link
Copy Markdown
Contributor

ReadableStream, WritableStream and TransformStream look up and validate
properties on their arguments. Add tests to verify that these lookups
and validations happen in the order specified by the standard.

whatwg/streams#922 adjusts some of the ordering
of these operations. These tests correspond to that change.

A new utility file streams/resources/constructor-ordering.js contains
functions to construct objects which track property lookups and
validations and can cause them to fail.

For each constructor the constructor.js file contains a list of the
expected operations in order, and a test case to verify it.

A test in streams/transform-streams/properties.js already detected the
ordering of property accesses by the TransformStream constructor.
writableStrategy is now accessed before readableStrategy to match the
order of the constructor arguments, and so the expectations of this test
are changed to match.

ReadableStream, WritableStream and TransformStream look up and validate
properties on their arguments. Add tests to verify that these lookups
and validations happen in the order specified by the standard.

whatwg/streams#922 adjusts some of the ordering
of these operations. These tests correspond to that change.

A new utility file streams/resources/constructor-ordering.js contains
functions to construct objects which track property lookups and
validations and can cause them to fail.

For each constructor the constructor.js file contains a list of the
expected operations in order, and a test case to verify it.

A test in streams/transform-streams/properties.js already detected the
ordering of property accesses by the TransformStream constructor.
writableStrategy is now accessed before readableStrategy to match the
order of the constructor arguments, and so the expectations of this test
are changed to match.

@domenic domenic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving since this accurately and comprehensively tests the spec. I am less sure about the spec, reading these sequences, but we can discuss that elsewhere.

@ricea
ricea merged commit 85f9d70 into web-platform-tests:master Apr 24, 2018
@ricea
ricea deleted the streams-property-access-order branch April 24, 2018 09:55
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.

3 participants