OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Cache Storage: ignore search with credentials</title> | 2 <title>Cache Storage: ignore search with credentials</title> |
3 <script src="/resources/testharness.js"></script> | 3 <script src="/resources/testharness.js"></script> |
4 <script src="/resources/testharnessreport.js"></script> | 4 <script src="/resources/testharnessreport.js"></script> |
5 <script src="../resources/test-helpers.js"></script> | |
6 <script src="../../serviceworker/resources/test-helpers.js"></script> | 5 <script src="../../serviceworker/resources/test-helpers.js"></script> |
7 <script> | 6 <script> |
8 | 7 |
9 function remove_query(url_string) { | 8 function remove_query(url_string) { |
10 return url_string.split('?')[0]; | 9 return url_string.split('?')[0]; |
11 } | 10 } |
12 | 11 |
13 function find_request_object(cache, str) { | 12 function find_request_object(cache, str) { |
14 return cache.keys() | 13 return cache.keys() |
15 .then(function(requests) { | 14 .then(function(requests) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 .then(function(result) { | 84 .then(function(result) { |
86 assert_true(result); | 85 assert_true(result); |
87 return cache.matchAll(request, { ignoreSearch : true }); | 86 return cache.matchAll(request, { ignoreSearch : true }); |
88 }) | 87 }) |
89 .then(function(results) { | 88 .then(function(results) { |
90 assert_equals(results.length, 0); | 89 assert_equals(results.length, 0); |
91 }); | 90 }); |
92 }); | 91 }); |
93 | 92 |
94 </script> | 93 </script> |
OLD | NEW |