gecko-dev/testing/web-platform/tests/streams
Adam Rice b22ef3a053 Bug 1566341 [wpt PR 17804] - Implement QueuingStrategies in C++, a=testonly
Automatic update from web-platform-tests
Implement QueuingStrategies in C++

Implement CountQueuingStrategy and ByteLengthQueuingStrategy in C++.

Implementing in WebIDL leads to some changes in semantics:

1. highWaterMark is now a getter on the prototype rather than an
property on each object. This is because adding properties directly on
objects is not usual practice in WebIDL, and is problematic to implement
in Blink.

2. size() is now a function returned by a getter. This is because a
methods in WebIDL must be called with |this| set to a valid object of
the appropriate type, but size() is called with |this| set to undefined.
See https://github.com/whatwg/streams/issues/1005 for more discussion.

These aren't expected to change behaviour of code in the wild, but the
count-queuing-strategy.any.js and byte-length-queuing-strategy.js
tests detect it.

Also add tests that subclassing of CountQueuingStrategy and
ByteLengthQueuingStrategyworks works properly. A previous iteration
of this change broke it.

Bug: 981333
Change-Id: Ifc18a469a58f73d54563ca549a1c8db0e001303b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1692108
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#679897}

--

wpt-commits: 4dbc86fa9b79da17a037140fc2eaba05c80f90ee
wpt-pr: 17804
2019-07-31 02:53:57 +00:00
..
piping Bug 1565724 [wpt PR 17816] - Verify that aborting a pipe with both preventCancel and preventAbort works, a=testonly 2019-07-24 13:34:55 +01:00
readable-byte-streams
readable-streams Bug 1541746 [wpt PR 16167] - Verify that ReadableStreamTee doesn't pull more chunks than the branch HWM, a=testonly 2019-06-05 10:24:56 +01:00
resources Bug 1547574 [wpt PR 16541] - Web Platform Tests: Append comment with instructions for chrome, a=testonly 2019-06-05 10:27:39 +01:00
transform-streams
writable-streams
byte-length-queuing-strategy.any.js Bug 1566341 [wpt PR 17804] - Implement QueuingStrategies in C++, a=testonly 2019-07-31 02:53:57 +00:00
count-queuing-strategy.any.js Bug 1566341 [wpt PR 17804] - Implement QueuingStrategies in C++, a=testonly 2019-07-31 02:53:57 +00:00
META.yml
README.md

Streams Tests

The work on the streams tests is closely tracked by the specification authors, who maintain a reference implementation intended to match the spec line-by-line while passing all of these tests. See the whatwg/streams repository for details. Some tests may be in that repository while the spec sections they test are still undergoing heavy churn.