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

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

Issue 1267263003: Rename fetch layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
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'); 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
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 }
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/fetch/resources/fetch-access-control-worker.js ('k') | LayoutTests/http/tests/fetch/resources/init.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698