Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/streams/piping/transform-streams.js

Issue 2642393002: Import wpt@40665266227e475bc4a56884247d8c09d78dfb6a (Closed)
Patch Set: rebaseline-cl Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 'use strict';
2
3 if (self.importScripts) {
4 self.importScripts('/resources/testharness.js');
5 }
6
7 promise_test(() => {
8 const rs = new ReadableStream({
9 start(c) {
10 c.enqueue('a');
11 c.enqueue('b');
12 c.enqueue('c');
13 c.close();
14 }
15 });
16
17 const ts = new TransformStream();
18
19 const ws = new WritableStream();
20
21 return rs.pipeThrough(ts).pipeTo(ws).then(() => {
22 const writer = ws.getWriter();
23 return writer.closed;
24 });
25 }, 'Piping through an identity transform stream should close the destination whe n the source closes');
26
27 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698