mirror of
https://github.com/servo/servo.git
synced 2025-06-30 20:13:39 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
27 lines
565 B
JavaScript
27 lines
565 B
JavaScript
'use strict';
|
|
|
|
if (self.importScripts) {
|
|
self.importScripts('/resources/testharness.js');
|
|
}
|
|
|
|
promise_test(() => {
|
|
const rs = new ReadableStream({
|
|
start(c) {
|
|
c.enqueue('a');
|
|
c.enqueue('b');
|
|
c.enqueue('c');
|
|
c.close();
|
|
}
|
|
});
|
|
|
|
const ts = new TransformStream();
|
|
|
|
const ws = new WritableStream();
|
|
|
|
return rs.pipeThrough(ts).pipeTo(ws).then(() => {
|
|
const writer = ws.getWriter();
|
|
return writer.closed;
|
|
});
|
|
}, 'Piping through an identity transform stream should close the destination when the source closes');
|
|
|
|
done();
|