| 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 fetch_tests_from_worker( | 13 fetch_tests_from_worker( |
| 12 new Worker('/fetch/script-tests/thorough/auth.js?-base-https-other-https')); | 14 new Worker('/fetch/script-tests/thorough/auth.js?-base-https-other-https')); |
| 13 t.done(); | 15 t.done(); |
| 14 } | 16 } |
| 15 function init(test) { | 17 function init(test) { |
| 16 return login(test) | 18 return login(test, host_info['HTTP_ORIGIN'], host_info['HTTP_REMOTE_ORIGIN']) |
| 17 .then(function() {return login_https(test);}); | 19 .then(function() { |
| 20 return login(test, host_info['HTTPS_ORIGIN'], |
| 21 host_info['HTTPS_REMOTE_ORIGIN']); |
| 22 }); |
| 18 } | 23 } |
| 19 </script> | 24 </script> |
| 20 <script src = "/fetch/resources/init.js"></script> | 25 <script src = "/fetch/resources/init.js"></script> |
| 21 </body> | 26 </body> |
| OLD | NEW |