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

ricea commented on this pull request.



> +        assert_true(transformDone, 'pending transform promise must resolve before flush is called');
+      });
+      return new Promise(resolve => setTimeout(resolve, 50))
+        .then(() => { flushDone = true; });
+    }
+  });
+
+  assert_true(startCalled, 'start is called synchronously');
+
+  const writer = ts.writable.getWriter();
+  writer.write('a');
+  writer.close().then(t.step_func(() => {
+    assert_true(flushDone, 'flushPromise resolved');
+    t.done();
+  }))
+  .catch(t.step_func(e => assert_unreached(e)));

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_r133331806

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