OLD | NEW |
(Empty) | |
| 1 if (self.importScripts) { |
| 2 importScripts('/fetch/resources/fetch-test-helpers.js'); |
| 3 importScripts('/fetch/resources/thorough-util.js'); |
| 4 } |
| 5 |
| 6 var url = URL.createObjectURL(new Blob(["report({jsonpResult: 'success'});"], {t
ype: 'application/json'})); |
| 7 |
| 8 var TEST_TARGETS = [ |
| 9 // Same-origin blob: requests. |
| 10 [BASE_URL + 'url=' + encodeURIComponent(url) + '&mode=same-origin&method=GET', |
| 11 [fetchResolved, hasContentLength, noServerHeader, hasBody, typeBasic], |
| 12 [checkJsonpSuccess]], |
| 13 [BASE_URL + 'url=' + encodeURIComponent(url) + '&mode=cors&method=GET', |
| 14 [fetchResolved, hasContentLength, noServerHeader, hasBody, typeBasic], |
| 15 [checkJsonpSuccess]], |
| 16 [BASE_URL + 'url=' + encodeURIComponent(url) + '&mode=no-cors&method=GET', |
| 17 [fetchResolved, hasContentLength, noServerHeader, hasBody, typeBasic], |
| 18 [checkJsonpSuccess]], |
| 19 ]; |
| 20 |
| 21 if (self.importScripts) { |
| 22 executeTests(TEST_TARGETS); |
| 23 done(); |
| 24 } |
OLD | NEW |