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('/serviceworker/resources/test-helpers.js'); | 4 importScripts('/serviceworker/resources/test-helpers.js'); |
5 importScripts('../resources/fetch-test-options.js'); | 5 importScripts('/fetch/resources/fetch-test-options.js'); |
6 } | 6 } |
7 | 7 |
8 function getContentType(headers) { | 8 function getContentType(headers) { |
9 var content_type = ''; | 9 var content_type = ''; |
10 for (var header of headers) { | 10 for (var header of headers) { |
11 if (header[0] == 'content-type') | 11 if (header[0] == 'content-type') |
12 content_type = header[1]; | 12 content_type = header[1]; |
13 } | 13 } |
14 return content_type; | 14 return content_type; |
15 } | 15 } |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 function() { | 209 function() { |
210 if (mode !== 'same-origin') { | 210 if (mode !== 'same-origin') { |
211 assert_unreached( | 211 assert_unreached( |
212 'Test 5: Cross-origin HTTPS request must success: ' + | 212 'Test 5: Cross-origin HTTPS request must success: ' + |
213 'mode = ' + mode); | 213 'mode = ' + mode); |
214 } | 214 } |
215 }); | 215 }); |
216 }); | 216 }); |
217 }, 'Block fetch() as mixed content (' + mode + ')'); | 217 }, 'Block fetch() as mixed content (' + mode + ')'); |
218 } | 218 } |
OLD | NEW |