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 // Auth check | 7 // Auth check |
8 // Test that default mode is no-cors in serviceworker-proxied tests. | 8 // Test that default mode is no-cors in serviceworker-proxied tests. |
9 onlyOnServiceWorkerProxiedTest( | 9 onlyOnServiceWorkerProxiedTest( |
10 [BASE_URL + 'Auth', | 10 [BASE_URL + 'Auth', |
11 [fetchResolved, hasBody], [authCheck1]]), | 11 [fetchResolved, hasBody], [authCheck1]]), |
12 onlyOnServiceWorkerProxiedTest( | 12 onlyOnServiceWorkerProxiedTest( |
13 [BASE_URL + 'Auth&credentials=omit', | 13 [BASE_URL + 'Auth&credentials=omit', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 onlyOnServiceWorkerProxiedTest([authCheck2])], | 54 onlyOnServiceWorkerProxiedTest([authCheck2])], |
55 [OTHER_BASE_URL + 'Auth&mode=no-cors&credentials=same-origin', | 55 [OTHER_BASE_URL + 'Auth&mode=no-cors&credentials=same-origin', |
56 [fetchResolved, noBody, typeOpaque], | 56 [fetchResolved, noBody, typeOpaque], |
57 onlyOnServiceWorkerProxiedTest([authCheck2])], | 57 onlyOnServiceWorkerProxiedTest([authCheck2])], |
58 ]; | 58 ]; |
59 | 59 |
60 if (self.importScripts) { | 60 if (self.importScripts) { |
61 executeTests(TEST_TARGETS); | 61 executeTests(TEST_TARGETS); |
62 done(); | 62 done(); |
63 } | 63 } |
OLD | NEW |