Skip to content

Commit cee7a5a

Browse files
committed
test: update streams WPTs
1 parent f4a0ca6 commit cee7a5a

File tree

11 files changed

+891
-3
lines changed

11 files changed

+891
-3
lines changed

test/fixtures/wpt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Last update:
2626
- performance-timeline: https://github.com/web-platform-tests/wpt/tree/17ebc3aea0/performance-timeline
2727
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
2828
- resources: https://github.com/web-platform-tests/wpt/tree/919874f84f/resources
29-
- streams: https://github.com/web-platform-tests/wpt/tree/51750bc8d7/streams
29+
- streams: https://github.com/web-platform-tests/wpt/tree/517e945bbf/streams
3030
- url: https://github.com/web-platform-tests/wpt/tree/84782d9315/url
3131
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
3232
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// META: global=window,worker
2+
'use strict';
3+
4+
promise_test(async t => {
5+
/** @type {ReadableStreamDefaultController} */
6+
var con;
7+
let synchronous = false;
8+
new ReadableStream({ start(c) { con = c }}, { highWaterMark: 0 }).pipeTo(
9+
new WritableStream({ write() { synchronous = true; } })
10+
)
11+
// wait until start algorithm finishes
12+
await Promise.resolve();
13+
con.enqueue();
14+
assert_false(synchronous, 'write algorithm must not run synchronously');
15+
}, "enqueue() must not synchronously call write algorithm");

0 commit comments

Comments
 (0)