Revision f7aab0af8bf4ffc4aa24ce4bb5299b0a063ff8ef authored by Adam Rice on 05 April 2018, 15:11:00 UTC, committed by Adam Rice on 13 April 2018, 14:58:07 UTC
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.

https://github.com/whatwg/streams/pull/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.
1 parent 6e1b5f4
History
File Mode Size
resources
OWNERS -rw-r--r-- 23 bytes
idlharness.https.html -rw-r--r-- 930 bytes
share-cancel-manual.html -rw-r--r-- 739 bytes
share-empty.https.html -rw-r--r-- 1.2 KB
share-extra-argument-manual.html -rw-r--r-- 670 bytes
share-extra-field-manual.html -rw-r--r-- 674 bytes
share-non-string-manual.html -rw-r--r-- 808 bytes
share-null-manual.html -rw-r--r-- 762 bytes
share-securecontext.http.html -rw-r--r-- 477 bytes
share-simple-manual.html -rw-r--r-- 1.0 KB
share-unicode-strings-manual.html -rw-r--r-- 1001 bytes
share-unicode-strings-nonutf8-manual.html -rw-r--r-- 1.1 KB
share-url-data-manual.html -rw-r--r-- 560 bytes
share-url-empty-manual.html -rw-r--r-- 530 bytes
share-url-encoding-manual.html -rw-r--r-- 868 bytes
share-url-invalid.https.html -rw-r--r-- 610 bytes
share-url-noscheme-manual.html -rw-r--r-- 616 bytes
share-url-pathonly-manual.html -rw-r--r-- 601 bytes
share-url-relative-manual.html -rw-r--r-- 616 bytes
share-without-user-gesture.https.html -rw-r--r-- 573 bytes

back to top