Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../../../resources/testharness.js"></script> |
|
jsbell
2016/04/18 16:28:20
Same here
| |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../../../resources/testharnessreport.js"></script> |
| 4 <script src="../../serviceworker/resources/test-helpers.js"></script> | 4 <script src="../../serviceworker/resources/test-helpers.js"></script> |
| 5 <script src="../../resources/get-host-info.js"></script> | 5 <script src="../../resources/get-host-info.js"></script> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 var ORIGIN = get_host_info()['HTTP_ORIGIN']; | 8 var ORIGIN = get_host_info()['HTTP_ORIGIN']; |
| 9 var IFRAME_BASE_URL = ORIGIN + '/local/serviceworker/resources/fetch-request-bod y-file-iframe.html'; | 9 var IFRAME_BASE_URL = ORIGIN + '/local/serviceworker/resources/fetch-request-bod y-file-iframe.html'; |
| 10 var SCOPE = ORIGIN + '/local/serviceworker/resources/fetch-request-body-file-tes t'; | 10 var SCOPE = ORIGIN + '/local/serviceworker/resources/fetch-request-body-file-tes t'; |
| 11 | 11 |
| 12 function register() { | 12 function register() { |
| 13 return new Promise(function(resolve, reject) { | 13 return new Promise(function(resolve, reject) { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 138 register() | 138 register() |
| 139 .then(function() { return send_post_frame_promise('asText'); }) | 139 .then(function() { return send_post_frame_promise('asText'); }) |
| 140 .then(as_text_test_frame_check) | 140 .then(as_text_test_frame_check) |
| 141 .then(function() { return send_post_frame_promise('asBlob'); }) | 141 .then(function() { return send_post_frame_promise('asBlob'); }) |
| 142 .then(as_blob_test_frame_check) | 142 .then(as_blob_test_frame_check) |
| 143 .then(function() { return unregister_and_done(t); }) | 143 .then(function() { return unregister_and_done(t); }) |
| 144 .catch(unreached_rejection(t)); | 144 .catch(unreached_rejection(t)); |
| 145 }, 'Service Worker fetch request body with file.'); | 145 }, 'Service Worker fetch request body with file.'); |
| 146 </script> | 146 </script> |
| 147 </body> | 147 </body> |
| OLD | NEW |