| OLD | NEW |
| 1 if (self.importScripts) { | 1 if (self.importScripts) { |
| 2 importScripts('../resources/fetch-test-helpers.js'); | 2 importScripts('/fetch/resources/fetch-test-helpers.js'); |
| 3 importScripts('../resources/fetch-access-control-util.js'); | 3 importScripts('/fetch/resources/thorough-util.js'); |
| 4 } | 4 } |
| 5 | 5 |
| 6 var TEST_TARGETS = [ | 6 var TEST_TARGETS = [ |
| 7 // Test that default mode is no-cors in serviceworker-proxied tests. | 7 // Test that default mode is no-cors in serviceworker-proxied tests. |
| 8 onlyOnServiceWorkerProxiedTest( | 8 onlyOnServiceWorkerProxiedTest( |
| 9 [BASE_URL + 'method=GET', | 9 [BASE_URL + 'method=GET', |
| 10 [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic], | 10 [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic], |
| 11 [methodIsGET, authCheck1]]), | 11 [methodIsGET, authCheck1]]), |
| 12 onlyOnServiceWorkerProxiedTest( | 12 onlyOnServiceWorkerProxiedTest( |
| 13 [BASE_URL + 'method=GET&headers={}', | 13 [BASE_URL + 'method=GET&headers={}', |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 [OTHER_BASE_URL + 'mode=no-cors&method=PUT&headers=CUSTOM', | 70 [OTHER_BASE_URL + 'mode=no-cors&method=PUT&headers=CUSTOM', |
| 71 [fetchError]], | 71 [fetchError]], |
| 72 [OTHER_BASE_URL + 'mode=no-cors&method=XXX&headers=CUSTOM', | 72 [OTHER_BASE_URL + 'mode=no-cors&method=XXX&headers=CUSTOM', |
| 73 [fetchError]], | 73 [fetchError]], |
| 74 ]; | 74 ]; |
| 75 | 75 |
| 76 if (self.importScripts) { | 76 if (self.importScripts) { |
| 77 executeTests(TEST_TARGETS); | 77 executeTests(TEST_TARGETS); |
| 78 done(); | 78 done(); |
| 79 } | 79 } |
| OLD | NEW |