Bug 1509419 [wpt PR 14193] - ReadableStream: modify tests for pipeThrough() having...
commit5dc8b08c419497005c2203af036c7830a5b14044
authorAdam Rice <ricea@chromium.org>
Fri, 30 Nov 2018 18:03:53 +0000 (30 18:03 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 11 Dec 2018 03:02:17 +0000 (11 03:02 +0000)
tree9bcf7dbc82b3d2c634118b04ef2471bcacffe1dd
parent0a9030b63f4c08dea98af8a6ab1794c217cef480
Bug 1509419 [wpt PR 14193] - ReadableStream: modify tests for pipeThrough() having a brand check, a=testonly

Automatic update from web-platform-tests
ReadableStream: modify tests for pipeThrough() having a brand check (#14193)

Remove tests that ReadableStream.prototype.pipeThrough operates
generically on its arguments. Add tests that it performs brand checks on
|this|, |readable| and |writable|, and throws for other precondition
failures.

Also verify that it *doesn't* call pipeTo().

Also verify that preventClose, preventCancel and preventAbort work,
since we can no longer test that it passes through to pipeTo().

Also change the expected length of the function from 2 to 1 to reflect
that the options argument is optional.

Corresponding standard changes are at
https://github.com/whatwg/streams/pull/966.

--

wpt-commits: 4606e75ca8cd69830223f02e0fbd46fc160f431f
wpt-pr: 14193
testing/web-platform/tests/streams/piping/pipe-through.any.js
testing/web-platform/tests/streams/readable-streams/general.any.js