OLD | NEW |
1 <script src="../resources/get-host-info.sub.js"></script> | 1 <script src="/common/get-host-info.sub.js"></script> |
2 <script src="test-helpers.sub.js?pipe=sub"></script> | 2 <script src="test-helpers.sub.js?pipe=sub"></script> |
3 <script> | 3 <script> |
4 var host_info = get_host_info(); | 4 var host_info = get_host_info(); |
5 | 5 |
6 function xhr_send(method, data) { | 6 function xhr_send(method, data) { |
7 return new Promise(function(resolve, reject) { | 7 return new Promise(function(resolve, reject) { |
8 var xhr = new XMLHttpRequest(); | 8 var xhr = new XMLHttpRequest(); |
9 xhr.onload = function() { | 9 xhr.onload = function() { |
10 resolve(xhr); | 10 resolve(xhr); |
11 }; | 11 }; |
(...skipping 14 matching lines...) Expand all Loading... |
26 }); | 26 }); |
27 } | 27 } |
28 | 28 |
29 window.addEventListener('message', function(evt) { | 29 window.addEventListener('message', function(evt) { |
30 var port = evt.ports[0]; | 30 var port = evt.ports[0]; |
31 coalesce_headers_test() | 31 coalesce_headers_test() |
32 .then(function() { port.postMessage({results: 'finish'}); }) | 32 .then(function() { port.postMessage({results: 'finish'}); }) |
33 .catch(function(e) { port.postMessage({results: 'failure:' + e}); }); | 33 .catch(function(e) { port.postMessage({results: 'failure:' + e}); }); |
34 }); | 34 }); |
35 </script> | 35 </script> |
OLD | NEW |