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

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

Issue 1049983003: [Fetch] Body consume function should not set bodyUsed flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@stream-clone
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
« no previous file with comments | « no previous file | LayoutTests/http/tests/cachestorage/script-tests/cache-put.js » ('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-add.js
diff --git a/LayoutTests/http/tests/cachestorage/script-tests/cache-add.js b/LayoutTests/http/tests/cachestorage/script-tests/cache-add.js
index 0f85d120f8f9e280cc50ab5075fe67921aa182c9..27051ee15fcb3f19aa51a4796dd023dbd0948840 100644
--- a/LayoutTests/http/tests/cachestorage/script-tests/cache-add.js
+++ b/LayoutTests/http/tests/cachestorage/script-tests/cache-add.js
@@ -39,14 +39,10 @@ cache_test(function(cache) {
var request = new Request('../resources/simple.txt', {method: 'POST', body: 'Hello'});
return request.text()
.then(function() {
- assert_true(request.bodyUsed);
+ assert_false(request.bodyUsed);
})
.then(function() {
- return assert_promise_rejects(
- cache.add(request),
- new TypeError(),
- 'Cache.add with a Request object with a used body should reject ' +
- 'with a TypeError.');
+ return cache.add(request);
});
}, 'Cache.add called with Request object with a used body');
« no previous file with comments | « no previous file | LayoutTests/http/tests/cachestorage/script-tests/cache-put.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698