Re: [whatwg/streams] Port some TransformStream tests to wpt (#531)

marvinhagemeister commented on this pull request.



> +      flushCalled = true;
+      return new Promise(); // never resolves
+    }
+  });
+
+  const writer = ts.writable.getWriter();
+  writer.write('a');
+  writer.close();
+  assert_false(flushCalled, 'closing the writable does not immediately call flush if writes are not finished');
+
+  let rsClosed = false;
+  ts.readable.getReader().closed.then(() => {
+    rsClosed = true;
+  });
+
+  setTimeout(() => {

Thanks for the tip! Didn't know that as well 👍 

-- 
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/531

Received on Friday, 14 October 2016 16:23:35 UTC