Index: third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js |
index 8f1f288f87d15b24fc8ba6d4246b6cda62232120..7002fba54a68a17c99e285f4d8bab63a7ff076b4 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js |
@@ -53,6 +53,14 @@ prepopulated_cache_test(simple_entries, function(cache, entries) { |
}, 'Cache.match with new Request'); |
prepopulated_cache_test(simple_entries, function(cache, entries) { |
+ return cache.match(new Request(entries.a.request.url, {method: 'HEAD'})) |
+ .then(function(result) { |
+ assert_equals(result, undefined, |
+ 'Cache.match should not match HEAD Request.'); |
+ }); |
+ }, 'Cache.match with HEAD'); |
+ |
+prepopulated_cache_test(simple_entries, function(cache, entries) { |
return cache.match(entries.a.request, |
{ignoreSearch: true}) |
.then(function(result) { |