Skip to content

Commit

Permalink
Expose TransformStreamDefaultController
Browse files Browse the repository at this point in the history
Follows whatwg/streams#963.

Intent to Ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/I3ANo1F_NkM

Bug: 1093862
Change-Id: If408bad66762aa66dee9ddc26438ebc9b488d821
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3757032
Commit-Queue: Domenic Denicola <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1026650}
NOKEYCHECK=True
GitOrigin-RevId: aab2e24eaa0ce63a5a2218c3e094970ca8d80d0b
  • Loading branch information
domenic authored and copybara-github committed Jul 21, 2022
1 parent 6475eb6 commit d2e0a31
Show file tree
Hide file tree
Showing 19 changed files with 179 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This is only used when the new C++ implementation is enabled.

// https://streams.spec.whatwg.org/#rs-default-controller-class-definition
interface TransformStreamDefaultController {
readonly attribute double? desiredSize;
// https://streams.spec.whatwg.org/#ts-default-controller-class-definition
[
Exposed=(Window,Worker,Worklet)
]interface TransformStreamDefaultController {
readonly attribute unrestricted double? desiredSize;
[CallWith=ScriptState, RaisesException] void enqueue(
optional any chunk);
[CallWith=ScriptState] void error(optional any reason);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This is a testharness.js-based test.
Found 226 tests; 214 PASS, 12 FAIL, 0 TIMEOUT, 0 NOTRUN.
Found 226 tests; 225 PASS, 1 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS idl_test setup
PASS idl_test validation
PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique
Expand Down Expand Up @@ -184,17 +184,17 @@ PASS TransformStream must be primary interface of new TransformStream()
PASS Stringification of new TransformStream()
PASS TransformStream interface: new TransformStream() must inherit property "readable" with the proper type
PASS TransformStream interface: new TransformStream() must inherit property "writable" with the proper type
FAIL TransformStreamDefaultController interface: existence and properties of interface object assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface object length assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface object name assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: attribute desiredSize assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation enqueue(optional any) assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation error(optional any) assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation terminate() assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController must be primary interface of self.transformStreamDefaultController assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
PASS TransformStreamDefaultController interface: existence and properties of interface object
PASS TransformStreamDefaultController interface object length
PASS TransformStreamDefaultController interface object name
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property
PASS TransformStreamDefaultController interface: attribute desiredSize
PASS TransformStreamDefaultController interface: operation enqueue(optional any)
PASS TransformStreamDefaultController interface: operation error(optional any)
PASS TransformStreamDefaultController interface: operation terminate()
PASS TransformStreamDefaultController must be primary interface of self.transformStreamDefaultController
PASS Stringification of self.transformStreamDefaultController
PASS TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "desiredSize" with the proper type
PASS TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "enqueue(optional any)" with the proper type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This is a testharness.js-based test.
Found 226 tests; 214 PASS, 12 FAIL, 0 TIMEOUT, 0 NOTRUN.
Found 226 tests; 225 PASS, 1 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS idl_test setup
PASS idl_test validation
PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique
Expand Down Expand Up @@ -184,17 +184,17 @@ PASS TransformStream must be primary interface of new TransformStream()
PASS Stringification of new TransformStream()
PASS TransformStream interface: new TransformStream() must inherit property "readable" with the proper type
PASS TransformStream interface: new TransformStream() must inherit property "writable" with the proper type
FAIL TransformStreamDefaultController interface: existence and properties of interface object assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface object length assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface object name assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: attribute desiredSize assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation enqueue(optional any) assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation error(optional any) assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation terminate() assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController must be primary interface of self.transformStreamDefaultController assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
PASS TransformStreamDefaultController interface: existence and properties of interface object
PASS TransformStreamDefaultController interface object length
PASS TransformStreamDefaultController interface object name
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property
PASS TransformStreamDefaultController interface: attribute desiredSize
PASS TransformStreamDefaultController interface: operation enqueue(optional any)
PASS TransformStreamDefaultController interface: operation error(optional any)
PASS TransformStreamDefaultController interface: operation terminate()
PASS TransformStreamDefaultController must be primary interface of self.transformStreamDefaultController
PASS Stringification of self.transformStreamDefaultController
PASS TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "desiredSize" with the proper type
PASS TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "enqueue(optional any)" with the proper type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This is a testharness.js-based test.
Found 226 tests; 214 PASS, 12 FAIL, 0 TIMEOUT, 0 NOTRUN.
Found 226 tests; 225 PASS, 1 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS idl_test setup
PASS idl_test validation
PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique
Expand Down Expand Up @@ -184,17 +184,17 @@ PASS TransformStream must be primary interface of new TransformStream()
PASS Stringification of new TransformStream()
PASS TransformStream interface: new TransformStream() must inherit property "readable" with the proper type
PASS TransformStream interface: new TransformStream() must inherit property "writable" with the proper type
FAIL TransformStreamDefaultController interface: existence and properties of interface object assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface object length assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface object name assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: attribute desiredSize assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation enqueue(optional any) assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation error(optional any) assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation terminate() assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController must be primary interface of self.transformStreamDefaultController assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
PASS TransformStreamDefaultController interface: existence and properties of interface object
PASS TransformStreamDefaultController interface object length
PASS TransformStreamDefaultController interface object name
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property
PASS TransformStreamDefaultController interface: attribute desiredSize
PASS TransformStreamDefaultController interface: operation enqueue(optional any)
PASS TransformStreamDefaultController interface: operation error(optional any)
PASS TransformStreamDefaultController interface: operation terminate()
PASS TransformStreamDefaultController must be primary interface of self.transformStreamDefaultController
PASS Stringification of self.transformStreamDefaultController
PASS TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "desiredSize" with the proper type
PASS TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "enqueue(optional any)" with the proper type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This is a testharness.js-based test.
Found 226 tests; 214 PASS, 12 FAIL, 0 TIMEOUT, 0 NOTRUN.
Found 226 tests; 225 PASS, 1 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS idl_test setup
PASS idl_test validation
PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique
Expand Down Expand Up @@ -184,17 +184,17 @@ PASS TransformStream must be primary interface of new TransformStream()
PASS Stringification of new TransformStream()
PASS TransformStream interface: new TransformStream() must inherit property "readable" with the proper type
PASS TransformStream interface: new TransformStream() must inherit property "writable" with the proper type
FAIL TransformStreamDefaultController interface: existence and properties of interface object assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface object length assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface object name assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: attribute desiredSize assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation enqueue(optional any) assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation error(optional any) assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController interface: operation terminate() assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
FAIL TransformStreamDefaultController must be primary interface of self.transformStreamDefaultController assert_own_property: self does not have own property "TransformStreamDefaultController" expected property "TransformStreamDefaultController" missing
PASS TransformStreamDefaultController interface: existence and properties of interface object
PASS TransformStreamDefaultController interface object length
PASS TransformStreamDefaultController interface object name
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property
PASS TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property
PASS TransformStreamDefaultController interface: attribute desiredSize
PASS TransformStreamDefaultController interface: operation enqueue(optional any)
PASS TransformStreamDefaultController interface: operation error(optional any)
PASS TransformStreamDefaultController interface: operation terminate()
PASS TransformStreamDefaultController must be primary interface of self.transformStreamDefaultController
PASS Stringification of self.transformStreamDefaultController
PASS TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "desiredSize" with the proper type
PASS TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "enqueue(optional any)" with the proper type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,13 @@ interface TransformStream
getter readable
getter writable
method constructor
interface TransformStreamDefaultController
attribute @@toStringTag
getter desiredSize
method constructor
method enqueue
method error
method terminate
interface TrustedHTML
attribute @@toStringTag
method constructor
Expand Down
Loading

0 comments on commit d2e0a31

Please sign in to comment.