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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js

Issue 1004623007: Streams Implementation Update: async read (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@stream-reader-read
Patch Set: Created 5 years, 9 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
Index: LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js b/LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js
index ba2af06ea8f61c04ef002e58b1bacd5e0f48d230..ddb9f8c89b0bf87d1f066f9fa4f214b82e27e886 100644
--- a/LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js
@@ -15,7 +15,7 @@ function fetchBody(url) {
visited = true;
// Note that all provided urls have empty bodies, so
// we don't have to read the data.
- xhr.response.closed.then(resolve, reject);
+ xhr.response.getReader().closed.then(resolve, reject);
};
xhr.open('GET', url);
xhr.send();

Powered by Google App Engine
This is Rietveld 408576698