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