Re: [whatwg/streams] Port remaining TransformStream tests to wpt (#762)

ricea commented on this pull request.



> +    flush() {
+      t.step(() => assert_unreached('flush must never be called if start() fails'));
+    }
+  });
+
+  const writer = ts.writable.getWriter();
+  writer.write('a').then(t.step_func(() => assert_unreached('writer should be errored if start() fails')))
+  .catch(t.step_func(e => assert_equals(e, controllerError, 'writer rejects with same error')));
+  writer.close().then(t.step_func(() => assert_unreached('writer should be errored if start() fails')))
+  .catch(t.step_func(e => assert_equals(e, controllerError, 'writer rejects with same error')));
+
+  const reader = ts.readable.getReader();
+
+  reader.read().catch(t.step_func(e => {
+    assert_equals(e, controllerError, 'reader rejects with same error');
+    t.done();

I'm fixing this in the conversion to promise_test.

-- 
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/762#discussion_r133332300

Received on Tuesday, 15 August 2017 23:56:32 UTC