OLD | NEW |
1 if (self.importScripts) { | 1 if (self.importScripts) { |
2 importScripts('/resources/testharness.js'); | 2 importScripts('/resources/testharness.js'); |
3 importScripts('../resources/testharness-helpers.js'); | |
4 importScripts('../resources/test-helpers.js'); | 3 importScripts('../resources/test-helpers.js'); |
5 } | 4 } |
6 | 5 |
7 prepopulated_cache_test(simple_entries, function(cache, entries) { | 6 prepopulated_cache_test(simple_entries, function(cache, entries) { |
8 return cache.matchAll('not-present-in-the-cache') | 7 return cache.matchAll('not-present-in-the-cache') |
9 .then(function(result) { | 8 .then(function(result) { |
10 assert_response_array_equivalent( | 9 assert_response_array_equivalent( |
11 result, [], | 10 result, [], |
12 'Cache.matchAll should resolve with an empty array on failure.'); | 11 'Cache.matchAll should resolve with an empty array on failure.'); |
13 }); | 12 }); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 [ | 144 [ |
146 entries.vary_cookie_is_cookie.response, | 145 entries.vary_cookie_is_cookie.response, |
147 entries.vary_cookie_is_good.response, | 146 entries.vary_cookie_is_good.response, |
148 entries.vary_cookie_absent.response | 147 entries.vary_cookie_absent.response |
149 ], | 148 ], |
150 'Cache.matchAll should honor "ignoreVary" parameter.'); | 149 'Cache.matchAll should honor "ignoreVary" parameter.'); |
151 }); | 150 }); |
152 }, 'Cache.matchAll with "ignoreVary" parameter'); | 151 }, 'Cache.matchAll with "ignoreVary" parameter'); |
153 | 152 |
154 done(); | 153 done(); |
OLD | NEW |