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

Unified Diff: LayoutTests/http/tests/fetch/script-tests/stream-reader.js

Issue 883323004: Revert of Use ExclusiveStreamReader to lock Body. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@exclusive-reader
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/streams/ReadableStream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/fetch/script-tests/stream-reader.js
diff --git a/LayoutTests/http/tests/fetch/script-tests/stream-reader.js b/LayoutTests/http/tests/fetch/script-tests/stream-reader.js
index dc1b094a8030507326f9a497a773139515eceb6c..3a202716ac24c8779c5df5aca415bf5f26a7d152 100644
--- a/LayoutTests/http/tests/fetch/script-tests/stream-reader.js
+++ b/LayoutTests/http/tests/fetch/script-tests/stream-reader.js
@@ -88,28 +88,4 @@
});
}, 'read contents with ExclusiveStreamReader');
-promise_test(function(t) {
- return fetch('/fetch/resources/progressive.php').then(function(res) {
- assert_false(res.bodyUsed);
- var reader = res.body.getReader();
- assert_true(res.bodyUsed);
- return res;
- }).then(function(res) {
- return res.text();
- }).then(unreached_rejection(t), function() {
- // text() should fail because bodyUsed is set.
- });
- }, 'acquiring a reader should set bodyUsed.');
-
-promise_test(function(t) {
- return fetch('/fetch/resources/progressive.php').then(function(res) {
- // We need to access body attribute to start the stream.
- res.body;
- assert_false(res.bodyUsed);
- res.text();
- assert_true(res.bodyUsed);
- assert_throws({name: 'TypeError'}, function() { res.body.getReader() });
- });
- }, 'Setting bodyUsed means the body is locked.');
-
done();
« no previous file with comments | « no previous file | Source/core/streams/ReadableStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698