Re: [whatwg/streams] WPT-ify most of the remaining tape tests (#604)

isonmad commented on this pull request.



> +
+  assert_throws(new TypeError(), () => getter.call(target), getterName + ' should throw a TypeError');
+}
+
+const ws = new WritableStream();
+const writer = ws.getWriter();
+const WritableStreamDefaultWriter = writer.constructor;
+const WriterProto = WritableStreamDefaultWriter.prototype;
+
+test(() => {
+  getterThrows(WriterProto, 'desiredSize', fakeWritableStreamDefaultWriter());
+  getterThrows(WriterProto, 'desiredSize', realReadableStreamDefaultWriter());
+}, 'WritableStreamDefaultWriter.prototype.desiredSize enforces a brand check');
+
+promise_test(t => {
+  const results = [];

Sure. That works for this one, but some tests used a for loop so that doesn't work for them without a bigger rework.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/604

Received on Monday, 7 November 2016 22:22:00 UTC