[whatwg/streams] Add brand checks to TransformStream tests (#772)

Verify calls to IsTransformStream() and IsTransformStreamDefaultController()
abstract operations are correctly applied at public entry points.

Also add tests that the "readable" and "writable" properties pass the
IsReadableStream() and IsWritableStream() checks.

Also imports the latest version of test-utils.js from web-platform-tests and
adds a constructorThrowsForAll() test utility function.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/772

-- Commit Summary --

  * Add brand checks to TransformStream tests

-- File Changes --

    M reference-implementation/to-upstream-wpts/.eslintrc.json (5)
    M reference-implementation/to-upstream-wpts/resources/test-utils.js (26)
    A reference-implementation/to-upstream-wpts/transform-streams/brand-checks.html (10)
    A reference-implementation/to-upstream-wpts/transform-streams/brand-checks.js (79)
    M reference-implementation/to-upstream-wpts/transform-streams/general.js (6)

-- Patch Links --

https://github.com/whatwg/streams/pull/772.patch
https://github.com/whatwg/streams/pull/772.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/772

Received on Tuesday, 22 August 2017 13:39:54 UTC