Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js

Issue 1216203003: Replace all sequential_promise_tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@update-testharnessjs
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698