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 port; | 4 var port; |
5 var host_info = get_host_info(); | 5 var host_info = get_host_info(); |
6 | 6 |
7 function assert_equals(a, b) { | 7 function assert_equals(a, b) { |
8 port.postMessage({results: 'equals', got: a, expected: b}); | 8 port.postMessage({results: 'equals', got: a, expected: b}); |
9 } | 9 } |
10 | 10 |
11 function get_boundary(headers) { | 11 function get_boundary(headers) { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 .then(blob_test) | 170 .then(blob_test) |
171 .then(custom_method_test) | 171 .then(custom_method_test) |
172 .then(options_method_test) | 172 .then(options_method_test) |
173 .then(form_data_test) | 173 .then(form_data_test) |
174 .then(mode_credentials_test) | 174 .then(mode_credentials_test) |
175 .then(data_url_test) | 175 .then(data_url_test) |
176 .then(function() { port.postMessage({results: 'finish'}); }) | 176 .then(function() { port.postMessage({results: 'finish'}); }) |
177 .catch(function(e) { port.postMessage({results: 'failure:' + e}); }); | 177 .catch(function(e) { port.postMessage({results: 'failure:' + e}); }); |
178 }); | 178 }); |
179 </script> | 179 </script> |
OLD | NEW |