Bug 1755335 - Add skeleton code for TransformStream{,DefaultController} r=mgaudet,emilio

Differential Revision: https://phabricator.services.mozilla.com/D138672
This commit is contained in:
Kagami Sascha Rosylight 2022-02-14 22:25:11 +00:00
Родитель 554dfc9c32
Коммит 93f704f156
18 изменённых файлов: 485 добавлений и 187 удалений

Просмотреть файл

@ -0,0 +1,60 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/TransformStream.h"
#include "mozilla/dom/WritableStream.h"
#include "mozilla/dom/ReadableStream.h"
#include "mozilla/dom/TransformStreamBinding.h"
#include "mozilla/dom/TransformerBinding.h"
#include "mozilla/dom/StreamUtils.h"
#include "nsWrapperCache.h"
namespace mozilla::dom {
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(TransformStream, mGlobal)
NS_IMPL_CYCLE_COLLECTING_ADDREF(TransformStream)
NS_IMPL_CYCLE_COLLECTING_RELEASE(TransformStream)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(TransformStream)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END
TransformStream::TransformStream(nsIGlobalObject* aGlobal) : mGlobal(aGlobal) {
mozilla::HoldJSObjects(this);
}
TransformStream::~TransformStream() { mozilla::DropJSObjects(this); }
JSObject* TransformStream::WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
return TransformStream_Binding::Wrap(aCx, this, aGivenProto);
}
// https://streams.spec.whatwg.org/#ts-constructor
already_AddRefed<TransformStream> TransformStream::Constructor(
const GlobalObject& aGlobal,
const Optional<JS::Handle<JSObject*>>& aTransformer,
const QueuingStrategy& aWritableStrategy,
const QueuingStrategy& aReadableStrategy, ErrorResult& aRv) {
nsCOMPtr<nsIGlobalObject> global = do_QueryInterface(aGlobal.GetAsSupports());
RefPtr<TransformStream> transformStream = new TransformStream(global);
return transformStream.forget();
}
already_AddRefed<ReadableStream> TransformStream::GetReadable(
ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
already_AddRefed<WritableStream> TransformStream::GetWritable(
ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
} // namespace mozilla::dom

Просмотреть файл

@ -0,0 +1,58 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef DOM_STREAMS_TRANSFORMSTREAM_H_
#define DOM_STREAMS_TRANSFORMSTREAM_H_
#include "TransformStreamDefaultController.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/QueuingStrategyBinding.h"
#include "mozilla/dom/TransformerBinding.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"
#ifndef MOZ_DOM_STREAMS
# error "Shouldn't be compiling with this header without MOZ_DOM_STREAMS set"
#endif
namespace mozilla::dom {
class WritableStream;
class ReadableStream;
class TransformStream final : public nsISupports, public nsWrapperCache {
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TransformStream)
protected:
~TransformStream();
explicit TransformStream(nsIGlobalObject* aGlobal);
public:
nsIGlobalObject* GetParentObject() const { return mGlobal; }
JSObject* WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;
// WebIDL methods
// TODO: Mark as MOZ_CAN_RUN_SCRIPT when IDL constructors can be (bug 1749042)
MOZ_CAN_RUN_SCRIPT_BOUNDARY static already_AddRefed<TransformStream>
Constructor(const GlobalObject& aGlobal,
const Optional<JS::Handle<JSObject*>>& aTransformer,
const QueuingStrategy& aWritableStrategy,
const QueuingStrategy& aReadableStrategy, ErrorResult& aRv);
already_AddRefed<ReadableStream> GetReadable(ErrorResult& aRv);
already_AddRefed<WritableStream> GetWritable(ErrorResult& aRv);
private:
nsCOMPtr<nsIGlobalObject> mGlobal;
};
} // namespace mozilla::dom
#endif // DOM_STREAMS_TRANSFORMSTREAM_H_

Просмотреть файл

@ -0,0 +1,65 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/TransformStreamDefaultController.h"
#include "mozilla/dom/TransformStream.h"
#include "mozilla/dom/TransformStreamDefaultControllerBinding.h"
#include "nsWrapperCache.h"
namespace mozilla::dom {
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(TransformStreamDefaultController, mGlobal)
NS_IMPL_CYCLE_COLLECTING_ADDREF(TransformStreamDefaultController)
NS_IMPL_CYCLE_COLLECTING_RELEASE(TransformStreamDefaultController)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(TransformStreamDefaultController)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END
TransformStreamDefaultController::TransformStreamDefaultController(
nsIGlobalObject* aGlobal)
: mGlobal(aGlobal) {
mozilla::HoldJSObjects(this);
}
TransformStreamDefaultController::~TransformStreamDefaultController() {
mozilla::DropJSObjects(this);
}
JSObject* TransformStreamDefaultController::WrapObject(
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
return TransformStreamDefaultController_Binding::Wrap(aCx, this, aGivenProto);
}
Nullable<double> TransformStreamDefaultController::GetDesiredSize() const {
// Step 1. Let readableController be
// this.[[stream]].[[readable]].[[controller]].
// TODO
// Step 2. Return !
// ReadableStreamDefaultControllerGetDesiredSize(readableController).
// TODO
return 0;
}
void TransformStreamDefaultController::Enqueue(JSContext* aCx,
JS::Handle<JS::Value> aChunk,
ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
}
void TransformStreamDefaultController::Error(JSContext* aCx,
JS::Handle<JS::Value> aError,
ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
}
void TransformStreamDefaultController::Terminate(ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
}
} // namespace mozilla::dom

Просмотреть файл

@ -0,0 +1,53 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef DOM_STREAMS_TRANSFORMSTREAMDEFAULTCONTROLLER_H_
#define DOM_STREAMS_TRANSFORMSTREAMDEFAULTCONTROLLER_H_
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/QueuingStrategyBinding.h"
#include "mozilla/dom/TransformerBinding.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"
#ifndef MOZ_DOM_STREAMS
# error "Shouldn't be compiling with this header without MOZ_DOM_STREAMS set"
#endif
namespace mozilla::dom {
class TransformStream;
class TransformStreamDefaultController final : public nsISupports,
public nsWrapperCache {
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TransformStreamDefaultController)
explicit TransformStreamDefaultController(nsIGlobalObject* aGlobal);
protected:
~TransformStreamDefaultController();
public:
nsIGlobalObject* GetParentObject() const { return mGlobal; }
JSObject* WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;
Nullable<double> GetDesiredSize() const;
void Enqueue(JSContext* aCx, JS::Handle<JS::Value> aChunk, ErrorResult& aRv);
void Error(JSContext* aCx, JS::Handle<JS::Value> aError, ErrorResult& aRv);
void Terminate(ErrorResult& aRv);
private:
nsCOMPtr<nsIGlobalObject> mGlobal;
};
} // namespace mozilla::dom
#endif // DOM_STREAMS_TRANSFORMSTREAMDEFAULTCONTROLLER_H_

Просмотреть файл

@ -13,7 +13,6 @@
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/QueuingStrategyBinding.h"
#include "mozilla/dom/WritableStream.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"
@ -25,6 +24,7 @@
namespace mozilla::dom {
class Promise;
class WritableStream;
class WritableStreamDefaultWriter final : public nsISupports,
public nsWrapperCache {

Просмотреть файл

@ -26,6 +26,8 @@ EXPORTS.mozilla.dom += [
"ReadRequest.h",
"StreamUtils.h",
"TeeState.h",
"TransformStream.h",
"TransformStreamDefaultController.h",
"UnderlyingSinkCallbackHelpers.h",
"UnderlyingSourceCallbackHelpers.h",
"WritableStream.h",
@ -46,6 +48,8 @@ UNIFIED_SOURCES += [
"ReadableStreamTee.cpp",
"StreamUtils.cpp",
"TeeState.cpp",
"TransformStream.cpp",
"TransformStreamDefaultController.cpp",
"UnderlyingSinkCallbackHelpers.cpp",
"UnderlyingSourceCallbackHelpers.cpp",
"WritableStream.cpp",

Просмотреть файл

@ -0,0 +1,21 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://streams.spec.whatwg.org/#ts-class-definition
*/
[Exposed=(Window,Worker,Worklet),
//Transferable See Bug 1734240
Pref="dom.streams.transform_streams.enabled"]
interface TransformStream {
[Throws]
constructor(optional object transformer,
optional QueuingStrategy writableStrategy = {},
optional QueuingStrategy readableStrategy = {});
[GetterThrows /* skeleton only */] readonly attribute ReadableStream readable;
[GetterThrows /* skeleton only */] readonly attribute WritableStream writable;
};

Просмотреть файл

@ -0,0 +1,17 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://streams.spec.whatwg.org/#ts-default-controller-class-definition
*/
[Exposed=(Window,Worker,Worklet),
Pref="dom.streams.transform_streams.enabled"]
interface TransformStreamDefaultController {
readonly attribute unrestricted double? desiredSize;
[Throws] void enqueue(optional any chunk);
[Throws] void error(optional any reason);
[Throws] void terminate();
};

Просмотреть файл

@ -0,0 +1,21 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://streams.spec.whatwg.org/#transformer-api
*/
[GenerateInit]
dictionary Transformer {
TransformerStartCallback start;
TransformerTransformCallback transform;
TransformerFlushCallback flush;
any readableType;
any writableType;
};
callback TransformerStartCallback = any (TransformStreamDefaultController controller);
callback TransformerFlushCallback = Promise<void> (TransformStreamDefaultController controller);
callback TransformerTransformCallback = Promise<void> (any chunk, TransformStreamDefaultController controller);

Просмотреть файл

@ -956,6 +956,9 @@ WEBIDL_FILES = [
"Touch.webidl",
"TouchEvent.webidl",
"TouchList.webidl",
"Transformer.webidl",
"TransformStream.webidl",
"TransformStreamDefaultController.webidl",
"TransitionEvent.webidl",
"TreeColumn.webidl",
"TreeColumns.webidl",

Просмотреть файл

@ -3610,7 +3610,6 @@
value: false
mirror: always
# DON'T enable, there are known issues!
- name: dom.streams.byte_streams.enabled
type: RelaxedAtomicBool
value: false
@ -3621,6 +3620,11 @@
value: false
mirror: always
- name: dom.streams.transform_streams.enabled
type: RelaxedAtomicBool
value: false
mirror: always
# For area and anchor elements with target=_blank and no rel set to
# opener/noopener.
- name: dom.targetBlankNoOpener.enabled

Просмотреть файл

@ -1 +1 @@
prefs: [javascript.options.streams:true,dom.streams.readable_stream_default_controller.enabled:true,dom.streams.readable_stream_default_reader.enabled:true,dom.streams.byte_streams.enabled:true,dom.streams.writable_streams.enabled:true]
prefs: [javascript.options.streams:true,dom.streams.readable_stream_default_controller.enabled:true,dom.streams.readable_stream_default_reader.enabled:true,dom.streams.byte_streams.enabled:true,dom.streams.writable_streams.enabled:true,dom.streams.transform_streams.enabled:true]

Просмотреть файл

@ -23,7 +23,8 @@
if not domstreams: FAIL
[TransformStream interface object length]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableByteStreamController interface object name]
expected:
@ -57,7 +58,8 @@
if not domstreams: FAIL
[Stringification of new TransformStream()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -95,7 +97,8 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface object]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: operation abort(optional any)]
expected:
@ -125,10 +128,12 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: attribute desiredSize]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface object]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: operation read(ArrayBufferView)]
expected:
@ -208,7 +213,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: self.readableStreamByobRequest must inherit property "respond(unsigned long long)" with the proper type]
expected:
@ -254,7 +260,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: attribute ready]
expected:
@ -290,7 +297,8 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: existence and properties of interface prototype object]
expected:
@ -321,7 +329,8 @@
if not domstreams: FAIL
[TransformStream interface object name]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's @@unscopables property]
expected:
@ -344,7 +353,8 @@
if not domstreams: FAIL
[TransformStream interface: attribute writable]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -363,7 +373,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation enqueue(optional any)]
expected: FAIL
expected:
if not domstreams: FAIL
[Stringification of self.readableByteStreamController]
expected:
@ -374,7 +385,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableByteStreamController interface: self.readableByteStreamController must inherit property "byobRequest" with the proper type]
expected:
@ -419,10 +431,12 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStream must be primary interface of new TransformStream()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: attribute view]
expected:
@ -449,7 +463,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object length]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()]
expected:
@ -464,7 +479,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object name]
expected: FAIL
expected:
if not domstreams: FAIL
[Stringification of self.writableStreamDefaultController]
expected:
@ -483,10 +499,12 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "writable" with the proper type]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "releaseLock()" with the proper type]
expected:
@ -521,7 +539,8 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "readable" with the proper type]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -543,7 +562,8 @@
if not domstreams: FAIL
[TransformStream interface: attribute readable]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultController interface object name]
expected:
@ -554,7 +574,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation error(optional any)]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: attribute closed]
expected:
@ -601,7 +622,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation terminate()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStream interface: async iterable<any>]
expected: FAIL
@ -672,7 +694,8 @@
if not domstreams: FAIL
[TransformStream interface object length]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableByteStreamController interface object name]
expected:
@ -706,7 +729,8 @@
if not domstreams: FAIL
[Stringification of new TransformStream()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -744,7 +768,8 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface object]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: operation abort(optional any)]
expected:
@ -774,10 +799,12 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: attribute desiredSize]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface object]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: operation read(ArrayBufferView)]
expected:
@ -857,7 +884,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: self.readableStreamByobRequest must inherit property "respond(unsigned long long)" with the proper type]
expected:
@ -903,7 +931,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: attribute ready]
expected:
@ -939,7 +968,8 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: existence and properties of interface prototype object]
expected:
@ -970,7 +1000,8 @@
if not domstreams: FAIL
[TransformStream interface object name]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's @@unscopables property]
expected:
@ -993,7 +1024,8 @@
if not domstreams: FAIL
[TransformStream interface: attribute writable]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1012,7 +1044,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation enqueue(optional any)]
expected: FAIL
expected:
if not domstreams: FAIL
[Stringification of self.readableByteStreamController]
expected:
@ -1023,7 +1056,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableByteStreamController interface: self.readableByteStreamController must inherit property "byobRequest" with the proper type]
expected:
@ -1068,10 +1102,12 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStream must be primary interface of new TransformStream()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: attribute view]
expected:
@ -1098,7 +1134,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object length]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()]
expected:
@ -1113,7 +1150,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object name]
expected: FAIL
expected:
if not domstreams: FAIL
[Stringification of self.writableStreamDefaultController]
expected:
@ -1132,10 +1170,12 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "writable" with the proper type]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "releaseLock()" with the proper type]
expected:
@ -1170,7 +1210,8 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "readable" with the proper type]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1192,7 +1233,8 @@
if not domstreams: FAIL
[TransformStream interface: attribute readable]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultController interface object name]
expected:
@ -1203,7 +1245,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation error(optional any)]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: attribute closed]
expected:
@ -1250,7 +1293,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation terminate()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStream interface: async iterable<any>]
expected: FAIL
@ -1321,7 +1365,8 @@
if not domstreams: FAIL
[TransformStream interface object length]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableByteStreamController interface object name]
expected:
@ -1355,7 +1400,8 @@
if not domstreams: FAIL
[Stringification of new TransformStream()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1393,7 +1439,8 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface object]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: operation abort(optional any)]
expected:
@ -1423,10 +1470,12 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: attribute desiredSize]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface object]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: operation read(ArrayBufferView)]
expected:
@ -1506,7 +1555,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: self.readableStreamByobRequest must inherit property "respond(unsigned long long)" with the proper type]
expected:
@ -1552,7 +1602,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: attribute ready]
expected:
@ -1588,7 +1639,8 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: existence and properties of interface prototype object]
expected:
@ -1619,7 +1671,8 @@
if not domstreams: FAIL
[TransformStream interface object name]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's @@unscopables property]
expected:
@ -1642,7 +1695,8 @@
if not domstreams: FAIL
[TransformStream interface: attribute writable]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1661,7 +1715,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation enqueue(optional any)]
expected: FAIL
expected:
if not domstreams: FAIL
[Stringification of self.readableByteStreamController]
expected:
@ -1672,7 +1727,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableByteStreamController interface: self.readableByteStreamController must inherit property "byobRequest" with the proper type]
expected:
@ -1717,10 +1773,12 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStream must be primary interface of new TransformStream()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: attribute view]
expected:
@ -1747,7 +1805,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object length]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()]
expected:
@ -1762,7 +1821,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object name]
expected: FAIL
expected:
if not domstreams: FAIL
[Stringification of self.writableStreamDefaultController]
expected:
@ -1781,10 +1841,12 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "writable" with the proper type]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "releaseLock()" with the proper type]
expected:
@ -1819,7 +1881,8 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "readable" with the proper type]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1841,7 +1904,8 @@
if not domstreams: FAIL
[TransformStream interface: attribute readable]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultController interface object name]
expected:
@ -1852,7 +1916,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation error(optional any)]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: attribute closed]
expected:
@ -1899,7 +1964,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation terminate()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStream interface: async iterable<any>]
expected: FAIL
@ -1970,7 +2036,8 @@
if not domstreams: FAIL
[TransformStream interface object length]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableByteStreamController interface object name]
expected:
@ -2004,7 +2071,8 @@
if not domstreams: FAIL
[Stringification of new TransformStream()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -2042,7 +2110,8 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface object]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: operation abort(optional any)]
expected:
@ -2072,10 +2141,12 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: attribute desiredSize]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface object]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: operation read(ArrayBufferView)]
expected:
@ -2155,7 +2226,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: self.readableStreamByobRequest must inherit property "respond(unsigned long long)" with the proper type]
expected:
@ -2201,7 +2273,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: attribute ready]
expected:
@ -2237,7 +2310,8 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: existence and properties of interface prototype object]
expected:
@ -2268,7 +2342,8 @@
if not domstreams: FAIL
[TransformStream interface object name]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's @@unscopables property]
expected:
@ -2291,7 +2366,8 @@
if not domstreams: FAIL
[TransformStream interface: attribute writable]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -2310,7 +2386,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation enqueue(optional any)]
expected: FAIL
expected:
if not domstreams: FAIL
[Stringification of self.readableByteStreamController]
expected:
@ -2321,7 +2398,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableByteStreamController interface: self.readableByteStreamController must inherit property "byobRequest" with the proper type]
expected:
@ -2366,10 +2444,12 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStream must be primary interface of new TransformStream()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStreamBYOBRequest interface: attribute view]
expected:
@ -2396,7 +2476,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object length]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()]
expected:
@ -2411,7 +2492,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object name]
expected: FAIL
expected:
if not domstreams: FAIL
[Stringification of self.writableStreamDefaultController]
expected:
@ -2430,10 +2512,12 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "writable" with the proper type]
expected: FAIL
expected:
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "releaseLock()" with the proper type]
expected:
@ -2468,7 +2552,8 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "readable" with the proper type]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -2490,7 +2575,8 @@
if not domstreams: FAIL
[TransformStream interface: attribute readable]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultController interface object name]
expected:
@ -2501,7 +2587,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation error(optional any)]
expected: FAIL
expected:
if not domstreams: FAIL
[WritableStreamDefaultWriter interface: attribute closed]
expected:
@ -2548,7 +2635,8 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation terminate()]
expected: FAIL
expected:
if not domstreams: FAIL
[ReadableStream interface: async iterable<any>]
expected: FAIL

Просмотреть файл

@ -5,9 +5,6 @@
[TransformStream errors thrown in flush put the writable and readable in an errored state]
expected: FAIL
[errored TransformStream should not enqueue new chunks]
expected: FAIL
[TransformStream transformer.start() rejected promise should error the stream]
expected: FAIL
@ -67,9 +64,6 @@
[TransformStream errors thrown in flush put the writable and readable in an errored state]
expected: FAIL
[errored TransformStream should not enqueue new chunks]
expected: FAIL
[TransformStream transformer.start() rejected promise should error the stream]
expected: FAIL
@ -129,9 +123,6 @@
[TransformStream errors thrown in flush put the writable and readable in an errored state]
expected: FAIL
[errored TransformStream should not enqueue new chunks]
expected: FAIL
[TransformStream transformer.start() rejected promise should error the stream]
expected: FAIL
@ -191,9 +182,6 @@
[TransformStream errors thrown in flush put the writable and readable in an errored state]
expected: FAIL
[errored TransformStream should not enqueue new chunks]
expected: FAIL
[TransformStream transformer.start() rejected promise should error the stream]
expected: FAIL

Просмотреть файл

@ -1,10 +1,4 @@
[general.any.sharedworker.html]
[TransformStream can be constructed with a transform function]
expected: FAIL
[TransformStream can be constructed with no transform function]
expected: FAIL
[TransformStream writable starts in the writable state]
expected: FAIL
@ -50,15 +44,9 @@
[closing the writable should close the readable when there are no queued chunks, even with backpressure]
expected: FAIL
[enqueue() should throw after controller.terminate()]
expected: FAIL
[enqueue() should throw after readable.cancel()]
expected: FAIL
[controller.terminate() should do nothing the second time it is called]
expected: FAIL
[terminate() should do nothing after readable.cancel()]
expected: FAIL
@ -76,12 +64,6 @@
[general.any.html]
[TransformStream can be constructed with a transform function]
expected: FAIL
[TransformStream can be constructed with no transform function]
expected: FAIL
[TransformStream writable starts in the writable state]
expected: FAIL
@ -127,15 +109,9 @@
[closing the writable should close the readable when there are no queued chunks, even with backpressure]
expected: FAIL
[enqueue() should throw after controller.terminate()]
expected: FAIL
[enqueue() should throw after readable.cancel()]
expected: FAIL
[controller.terminate() should do nothing the second time it is called]
expected: FAIL
[terminate() should do nothing after readable.cancel()]
expected: FAIL
@ -153,12 +129,6 @@
[general.any.worker.html]
[TransformStream can be constructed with a transform function]
expected: FAIL
[TransformStream can be constructed with no transform function]
expected: FAIL
[TransformStream writable starts in the writable state]
expected: FAIL
@ -204,15 +174,9 @@
[closing the writable should close the readable when there are no queued chunks, even with backpressure]
expected: FAIL
[enqueue() should throw after controller.terminate()]
expected: FAIL
[enqueue() should throw after readable.cancel()]
expected: FAIL
[controller.terminate() should do nothing the second time it is called]
expected: FAIL
[terminate() should do nothing after readable.cancel()]
expected: FAIL
@ -230,12 +194,6 @@
[general.any.serviceworker.html]
[TransformStream can be constructed with a transform function]
expected: FAIL
[TransformStream can be constructed with no transform function]
expected: FAIL
[TransformStream writable starts in the writable state]
expected: FAIL
@ -281,15 +239,9 @@
[closing the writable should close the readable when there are no queued chunks, even with backpressure]
expected: FAIL
[enqueue() should throw after controller.terminate()]
expected: FAIL
[enqueue() should throw after readable.cancel()]
expected: FAIL
[controller.terminate() should do nothing the second time it is called]
expected: FAIL
[terminate() should do nothing after readable.cancel()]
expected: FAIL

Просмотреть файл

@ -1,30 +1,18 @@
[patched-global.any.html]
[TransformStream constructor should not call setters for highWaterMark or size]
expected: FAIL
[TransformStream should use the original value of ReadableStream and WritableStream]
expected: FAIL
[patched-global.any.worker.html]
[TransformStream constructor should not call setters for highWaterMark or size]
expected: FAIL
[TransformStream should use the original value of ReadableStream and WritableStream]
expected: FAIL
[patched-global.any.serviceworker.html]
[TransformStream constructor should not call setters for highWaterMark or size]
expected: FAIL
[TransformStream should use the original value of ReadableStream and WritableStream]
expected: FAIL
[patched-global.any.sharedworker.html]
[TransformStream constructor should not call setters for highWaterMark or size]
expected: FAIL
[TransformStream should use the original value of ReadableStream and WritableStream]
expected: FAIL

Просмотреть файл

@ -20,9 +20,6 @@
[writableStrategy highWaterMark should be converted to a number]
expected: FAIL
[readableStrategy highWaterMark should be converted to a number]
expected: FAIL
[a bad readableStrategy size function should cause writer.write() to reject on an identity transform]
expected: FAIL
@ -52,9 +49,6 @@
[writableStrategy highWaterMark should be converted to a number]
expected: FAIL
[readableStrategy highWaterMark should be converted to a number]
expected: FAIL
[a bad readableStrategy size function should cause writer.write() to reject on an identity transform]
expected: FAIL
@ -84,9 +78,6 @@
[writableStrategy highWaterMark should be converted to a number]
expected: FAIL
[readableStrategy highWaterMark should be converted to a number]
expected: FAIL
[a bad readableStrategy size function should cause writer.write() to reject on an identity transform]
expected: FAIL
@ -116,9 +107,6 @@
[writableStrategy highWaterMark should be converted to a number]
expected: FAIL
[readableStrategy highWaterMark should be converted to a number]
expected: FAIL
[a bad readableStrategy size function should cause writer.write() to reject on an identity transform]
expected: FAIL

Просмотреть файл

@ -5,9 +5,6 @@
[controller.terminate() should prevent remaining chunks from being processed]
expected: FAIL
[controller.enqueue() should throw after controller.terminate()]
expected: FAIL
[controller.error() after controller.terminate() with queued chunk should error the readable]
expected: FAIL
@ -25,9 +22,6 @@
[controller.terminate() should prevent remaining chunks from being processed]
expected: FAIL
[controller.enqueue() should throw after controller.terminate()]
expected: FAIL
[controller.error() after controller.terminate() with queued chunk should error the readable]
expected: FAIL
@ -45,9 +39,6 @@
[controller.terminate() should prevent remaining chunks from being processed]
expected: FAIL
[controller.enqueue() should throw after controller.terminate()]
expected: FAIL
[controller.error() after controller.terminate() with queued chunk should error the readable]
expected: FAIL
@ -65,9 +56,6 @@
[controller.terminate() should prevent remaining chunks from being processed]
expected: FAIL
[controller.enqueue() should throw after controller.terminate()]
expected: FAIL
[controller.error() after controller.terminate() with queued chunk should error the readable]
expected: FAIL