OLD | NEW |
1 if (self.importScripts) { | 1 if (self.importScripts) { |
2 importScripts('/resources/testharness.js'); | 2 importScripts('/resources/testharness.js'); |
3 importScripts('../resources/test-helpers.js'); | 3 importScripts('../resources/test-helpers.js'); |
4 } | 4 } |
5 | 5 |
6 cache_test(cache => { | 6 cache_test(cache => { |
7 return cache.keys() | 7 return cache.keys() |
8 .then(requests => { | 8 .then(requests => { |
9 assert_equals( | 9 assert_equals( |
10 requests.length, 0, | 10 requests.length, 0, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 return cache.keys(new Request(entries.cat.request.url, {method: 'HEAD'})) | 183 return cache.keys(new Request(entries.cat.request.url, {method: 'HEAD'})) |
184 .then(function(result) { | 184 .then(function(result) { |
185 assert_request_array_equals( | 185 assert_request_array_equals( |
186 result, [], | 186 result, [], |
187 'Cache.keys should not match HEAD request unless ignoreMethod ' + | 187 'Cache.keys should not match HEAD request unless ignoreMethod ' + |
188 'option is set.'); | 188 'option is set.'); |
189 }); | 189 }); |
190 }, 'Cache.keys with a HEAD Request'); | 190 }, 'Cache.keys with a HEAD Request'); |
191 | 191 |
192 done(); | 192 done(); |
OLD | NEW |