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

Unified Diff: LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js

Issue 795463006: Rename ReadableStream.wait() to ReadableStream.ready. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/resources/response-stream.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js
diff --git a/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js b/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js
index 5e67a367ad1c120fcc27d8bf3645b82e2855e807..56163105be2d1be59997f0713c1a1ded34ceac15 100644
--- a/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js
+++ b/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js
@@ -17,7 +17,7 @@ function readStream(stream, values) {
values.push(stream.read());
}
if (stream.state === 'waiting') {
- return stream.wait().then(function() {
+ return stream.ready.then(function() {
readStream(stream, values);
});
}
@@ -29,7 +29,7 @@ promise_test(function(test) {
return fetch('/fetch/resources/doctype.html')
.then(function(resp) {
response = resp;
- return response.body.wait();
+ return response.body.ready;
})
.then(function() {
if (response.body.state !== 'readable') {
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/resources/response-stream.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698