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

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

Issue 678513002: Service Worker: Remove invalid test case for Cache.put() rejection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 2 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 | « LayoutTests/http/tests/serviceworker/cache-put-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dcd2cfbfc8ff9a9a70722f177bad53b36dde1e88..e4d694439d7cec4ef0671dafa0e9a6e8fb09e4ab 100644
--- a/LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/cache-put-worker.js
@@ -192,14 +192,6 @@ cache_test(function(cache) {
}, 'Cache.put with a relative URL');
cache_test(function(cache) {
- var request = new Request('http://example.com/foo', {method: 'get'});
- return assert_promise_rejects(
- cache.put(request, new_test_response()),
- new TypeError(),
- 'Cache.put should throw a TypeError for non-GET requests.');
- }, 'Cache.put with a non-GET request');
-
-cache_test(function(cache) {
var request = new Request('http://example.com/foo', {method: 'HEAD'});
return assert_promise_rejects(
cache.put(request, new_test_response()),
« no previous file with comments | « LayoutTests/http/tests/serviceworker/cache-put-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698