Bug 1528981 [wpt PR 15463] - Add missing tests for ReadableStream, a=testonly
commit88c7cee0ca38ee4ebb2cc16f0e0f9f81cacb3a7e
authorAdam Rice <ricea@chromium.org>
Mon, 25 Mar 2019 19:23:06 +0000 (25 19:23 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Mon, 1 Apr 2019 13:42:06 +0000 (1 14:42 +0100)
tree65f486a4ba8182a9e9dc99a25435785e2b986536
parentfb8385861e0057cab3c4b58710236ddbc573771b
Bug 1528981 [wpt PR 15463] - Add missing tests for ReadableStream, a=testonly

Automatic update from web-platform-tests
Add missing tests for ReadableStream

* Test the specific rejection returned by calling it.return() twice (to avoid
  being confused by assertions).
* Verify that it.next() after it.return() fails.
* Add brand checks for getIterator(), locked and desiredSize.
* Verify that canceling branches in reverse order works.
* Test that erroring a teed stream errors both branches, even when they
  are not waiting for chunks.
* Verify that controller.close() clears the list of pending reads
* Verify that return() unlocks the stream synchronously
--

wpt-commits: a05ede00f53322a2313702f1a282d4a19b6d44b0
wpt-pr: 15463
testing/web-platform/tests/streams/readable-streams/async-iterator.any.js
testing/web-platform/tests/streams/readable-streams/brand-checks.any.js
testing/web-platform/tests/streams/readable-streams/default-reader.any.js
testing/web-platform/tests/streams/readable-streams/tee.any.js