| 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'); | 3 importScripts('/resources/testharness-helpers.js'); |
| 4 importScripts('../resources/test-helpers.js'); | 4 importScripts('../resources/test-helpers.js'); |
| 5 } | 5 } |
| 6 | 6 |
| 7 prepopulated_cache_test(simple_entries, function(cache, entries) { | 7 prepopulated_cache_test(simple_entries, function(cache, entries) { |
| 8 return cache.matchAll('not-present-in-the-cache') | 8 return cache.matchAll('not-present-in-the-cache') |
| 9 .then(function(result) { | 9 .then(function(result) { |
| 10 assert_response_array_equivalent( | 10 assert_response_array_equivalent( |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 assert_response_array_equivalent( | 63 assert_response_array_equivalent( |
| 64 result, | 64 result, |
| 65 [ | 65 [ |
| 66 entries.a.response, | 66 entries.a.response, |
| 67 entries.a_with_query.response | 67 entries.a_with_query.response |
| 68 ], | 68 ], |
| 69 'Cache.matchAll with ignoreSearch should ignore the ' + | 69 'Cache.matchAll with ignoreSearch should ignore the ' + |
| 70 'search parameters of request.'); | 70 'search parameters of request.'); |
| 71 }); | 71 }); |
| 72 }, | 72 }, |
| 73 'Cache.matchAll with ignoreSearch option (request with search parameter)'); | 73 'Cache.matchAll with ignoreSearch option (request with search parameters)'); |
| 74 | 74 |
| 75 prepopulated_cache_test(simple_entries, function(cache, entries) { | 75 prepopulated_cache_test(simple_entries, function(cache, entries) { |
| 76 return cache.matchAll(entries.cat.request.url + '#mouse') | 76 return cache.matchAll(entries.cat.request.url + '#mouse') |
| 77 .then(function(result) { | 77 .then(function(result) { |
| 78 assert_response_array_equivalent( | 78 assert_response_array_equivalent( |
| 79 result, | 79 result, |
| 80 [ | 80 [ |
| 81 entries.cat.response, | 81 entries.cat.response, |
| 82 ], | 82 ], |
| 83 'Cache.matchAll should ignore URL fragment.'); | 83 'Cache.matchAll should ignore URL fragment.'); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 [ | 145 [ |
| 146 entries.vary_cookie_is_cookie.response, | 146 entries.vary_cookie_is_cookie.response, |
| 147 entries.vary_cookie_is_good.response, | 147 entries.vary_cookie_is_good.response, |
| 148 entries.vary_cookie_absent.response | 148 entries.vary_cookie_absent.response |
| 149 ], | 149 ], |
| 150 'Cache.matchAll should honor "ignoreVary" parameter.'); | 150 'Cache.matchAll should honor "ignoreVary" parameter.'); |
| 151 }); | 151 }); |
| 152 }, 'Cache.matchAll with "ignoreVary" parameter'); | 152 }, 'Cache.matchAll with "ignoreVary" parameter'); |
| 153 | 153 |
| 154 done(); | 154 done(); |
| OLD | NEW |