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

Unified Diff: LayoutTests/http/tests/cachestorage/script-tests/cache-put.js

Issue 1192913007: Change BodyStreamBuffer to be FetchDataConsumerHandle-based and enable backpressure in Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 5 years, 5 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/modules/cachestorage/Cache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/cachestorage/script-tests/cache-put.js
diff --git a/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js b/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js
index b9250956c5a0c74f1be7354f48288001ac6acbc3..60d142d6fa18da88799f5944870e573f7371c80e 100644
--- a/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js
+++ b/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js
@@ -291,4 +291,12 @@ cache_test(function(cache) {
});
}, 'Cache.put with a used response body');
+cache_test(function(cache) {
+ var response = new Response(test_body);
+ return cache.put(new Request(test_url), response)
+ .then(function() {
+ return response.body.getReader().closed;
+ });
+ }, 'getReader() after Cache.put');
+
done();
« no previous file with comments | « no previous file | Source/modules/cachestorage/Cache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698