| Index: third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/stream-reader.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/stream-reader.js b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/stream-reader.js
|
| index 3b0d513e9f905b7fea0ef923fa13673c2716448b..49625d3890644a58388475ca8d64d27fe0420748 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/stream-reader.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/stream-reader.js
|
| @@ -37,6 +37,17 @@ promise_test(function(t) {
|
| });
|
| }, 'read contents with ReadableStreamReader');
|
|
|
| +promise_test(() => {
|
| + let reader;
|
| + return fetch('/fetch/resources/progressive.php').then(res => {
|
| + reader = res.body.getReader();
|
| + return Promise.all([reader.read(), reader.read(), reader.read()]);
|
| + }).then(() => {
|
| + reader.releaseLock();
|
| + // We expect the test finishes without crashing.
|
| + });
|
| + }, 'parallel read');
|
| +
|
| promise_test(function(t) {
|
| return fetch('/fetch/resources/progressive.php').then(function(res) {
|
| assert_false(res.bodyUsed);
|
|
|