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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js

Issue 882383002: [Fetch] Request with GET/HEAD method cannot have body (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
Index: LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js b/LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js
index 317eec8e641f27b0a2e773f457eacc4b40b3b5e7..9393a15473b8fc3a25fd04845b9370eb877e0869 100644
--- a/LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js
@@ -67,7 +67,7 @@ cache_test(function(cache) {
cache_test(function(cache) {
var request = new Request(test_url, {
- method: 'GET',
+ method: 'POST',
body: 'Hello'
});
var response = new Response(test_body);
@@ -291,7 +291,7 @@ cache_test(function(cache) {
}, 'Cache.put with a null response');
cache_test(function(cache) {
- var request = new Request(test_url, {body: test_body});
+ var request = new Request(test_url, {method: 'POST', body: test_body});
assert_false(request.bodyUsed,
'[https://fetch.spec.whatwg.org/#dom-body-bodyused] ' +
'Request.bodyUsed should be initially false.');
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/cache-match-worker.js ('k') | Source/modules/fetch/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698