| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Service Worker: FetchEvent for resources</title> | 2 <title>Service Worker: FetchEvent for resources</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/get-host-info.js"></script> | 5 <script src="../resources/get-host-info.js"></script> |
| 6 <script src="resources/test-helpers.js?pipe=sub"></script> | 6 <script src="resources/test-helpers.js?pipe=sub"></script> |
| 7 <script> | 7 <script> |
| 8 var url_count = 0; | 8 var url_count = 0; |
| 9 var expected_results = {}; | 9 var expected_results = {}; |
| 10 | 10 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 css_test(f, LOCAL_URL, '', 'style', 'no-cors', 'same-origin'); | 171 css_test(f, LOCAL_URL, '', 'style', 'no-cors', 'same-origin'); |
| 172 css_test(f, LOCAL_URL, 'anonymous', 'style', 'cors', 'omit'); | 172 css_test(f, LOCAL_URL, 'anonymous', 'style', 'cors', 'omit'); |
| 173 css_test(f, LOCAL_URL, 'use-credentials', 'style', 'cors', | 173 css_test(f, LOCAL_URL, 'use-credentials', 'style', 'cors', |
| 174 'include'); | 174 'include'); |
| 175 css_test(f, REMOTE_URL, '', 'style', 'no-cors', 'same-origin'); | 175 css_test(f, REMOTE_URL, '', 'style', 'no-cors', 'same-origin'); |
| 176 css_test(f, REMOTE_URL, 'anonymous', 'style', 'cors', 'omit'); | 176 css_test(f, REMOTE_URL, 'anonymous', 'style', 'cors', 'omit'); |
| 177 css_test(f, REMOTE_URL, 'use-credentials', 'style', 'cors', | 177 css_test(f, REMOTE_URL, 'use-credentials', 'style', 'cors', |
| 178 'include'); | 178 'include'); |
| 179 | 179 |
| 180 font_face_test(f, LOCAL_URL, 'font', 'cors', 'omit'); | 180 font_face_test(f, LOCAL_URL, 'font', 'cors', 'include'); |
| 181 font_face_test(f, REMOTE_URL, 'font', 'cors', 'omit'); | 181 font_face_test(f, REMOTE_URL, 'font', 'cors', 'omit'); |
| 182 | 182 |
| 183 css_image_test(f, LOCAL_URL, 'backgroundImage', 'image', | 183 css_image_test(f, LOCAL_URL, 'backgroundImage', 'image', |
| 184 'no-cors', 'same-origin'); | 184 'no-cors', 'same-origin'); |
| 185 css_image_test(f, REMOTE_URL, 'backgroundImage', 'image', | 185 css_image_test(f, REMOTE_URL, 'backgroundImage', 'image', |
| 186 'no-cors', 'same-origin'); | 186 'no-cors', 'same-origin'); |
| 187 css_image_test(f, LOCAL_URL, 'shapeOutside', 'image', 'cors', | 187 css_image_test(f, LOCAL_URL, 'shapeOutside', 'image', 'cors', |
| 188 'omit'); | 188 'omit'); |
| 189 css_image_test(f, REMOTE_URL, 'shapeOutside', 'image', 'cors', | 189 css_image_test(f, REMOTE_URL, 'shapeOutside', 'image', 'cors', |
| 190 'omit'); | 190 'omit'); |
| 191 | 191 |
| 192 css_image_set_test(f, LOCAL_URL, 'backgroundImage', 'image', | 192 css_image_set_test(f, LOCAL_URL, 'backgroundImage', 'image', |
| 193 'no-cors', 'same-origin'); | 193 'no-cors', 'same-origin'); |
| 194 css_image_set_test(f, REMOTE_URL, 'backgroundImage', 'image', | 194 css_image_set_test(f, REMOTE_URL, 'backgroundImage', 'image', |
| 195 'no-cors', 'same-origin'); | 195 'no-cors', 'same-origin'); |
| 196 css_image_set_test(f, LOCAL_URL, 'shapeOutside', 'image', 'cors', | 196 css_image_set_test(f, LOCAL_URL, 'shapeOutside', 'image', 'cors', |
| 197 'omit'); | 197 'omit'); |
| 198 css_image_set_test(f, REMOTE_URL, 'shapeOutside', 'image', 'cors', | 198 css_image_set_test(f, REMOTE_URL, 'shapeOutside', 'image', 'cors', |
| 199 'omit'); | 199 'omit'); |
| 200 | 200 |
| 201 }) | 201 }) |
| 202 .catch(unreached_rejection(t)); | 202 .catch(unreached_rejection(t)); |
| 203 }, 'Verify FetchEvent for resources.'); | 203 }, 'Verify FetchEvent for resources.'); |
| 204 </script> | 204 </script> |
| OLD | NEW |