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

ricea commented on this pull request.



> +        t.done();
+      });
+    },
+    transform() {
+    }
+  });
+}, 'TransformStream cannot be used after becoming errored');
+
+async_test(t => {
+  const ts = new TransformStream({
+    start() {
+      return new Promise(resolve => setTimeout(resolve, 90))
+        .then(() => { throw thrownError; });
+    },
+    transform() {
+      t.step(() => assert_unreached('transform must never be called if start() fails'));

done

-- 
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_r133331820

Received on Tuesday, 15 August 2017 23:52:21 UTC