OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <head> | 2 <head> |
3 <meta name="timeout" content="long"></meta> | 3 <meta name="timeout" content="long"></meta> |
4 <script src = "/resources/testharness.js"></script> | 4 <script src = "/resources/testharness.js"></script> |
5 <script src = "/resources/testharnessreport.js"></script> | 5 <script src = "/resources/testharnessreport.js"></script> |
| 6 <script src = "/resources/get-host-info.js?pipe=sub"></script> |
6 <script src = "/serviceworker/resources/test-helpers.js"></script> | 7 <script src = "/serviceworker/resources/test-helpers.js"></script> |
7 </head> | 8 </head> |
8 <body> | 9 <body> |
9 <script> | 10 <script> |
| 11 var host_info = get_host_info(); |
10 function start(t) { | 12 function start(t) { |
11 service_worker_test( | 13 service_worker_test( |
12 '/fetch/script-tests/thorough/access-control.js?', | 14 '/fetch/script-tests/thorough/access-control.js?', |
13 'access-control'); | 15 'access-control'); |
14 t.done(); | 16 t.done(); |
15 } | 17 } |
16 function init(test) { | 18 function init(test) { |
17 return login(test) | 19 return login(test, host_info['HTTP_ORIGIN'], host_info['HTTP_REMOTE_ORIGIN']) |
18 .then(function() {return login_https(test);}); | 20 .then(function() { |
| 21 return login(test, host_info['HTTPS_ORIGIN'], |
| 22 host_info['HTTPS_REMOTE_ORIGIN']); }); |
19 } | 23 } |
20 </script> | 24 </script> |
21 <script src = "/fetch/resources/init.js"></script> | 25 <script src = "/fetch/resources/init.js"></script> |
22 </body> | 26 </body> |
OLD | NEW |