| 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 [BASE_URL + 'Auth&mode=same-origin&credentials=omit', | 8 [BASE_URL + 'Auth&mode=same-origin&credentials=omit', |
| 9 [fetchResolved, hasBody], [checkJsonpError]], | 9 [fetchResolved, hasBody], [checkJsonpError]], |
| 10 [BASE_URL + 'Auth&mode=same-origin&credentials=include', | 10 [BASE_URL + 'Auth&mode=same-origin&credentials=include', |
| 11 [fetchResolved, hasBody], [authCheck1]], | 11 [fetchResolved, hasBody], [authCheck1]], |
| 12 [BASE_URL + 'Auth&mode=same-origin&credentials=same-origin', | 12 [BASE_URL + 'Auth&mode=same-origin&credentials=same-origin', |
| 13 [fetchResolved, hasBody], [authCheck1]], | 13 [fetchResolved, hasBody], [authCheck1]], |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 [OTHER_BASE_URL + 'Auth&mode=cors&credentials=include&ACAOrigin=' + | 127 [OTHER_BASE_URL + 'Auth&mode=cors&credentials=include&ACAOrigin=' + |
| 128 BASE_ORIGIN + '&PACAOrigin=' + BASE_ORIGIN + | 128 BASE_ORIGIN + '&PACAOrigin=' + BASE_ORIGIN + |
| 129 '&PACACredentials=true&method=PUT&PACAMethods=PUT&PreflightTest=200', | 129 '&PACACredentials=true&method=PUT&PACAMethods=PUT&PreflightTest=200', |
| 130 [fetchRejected]], | 130 [fetchRejected]], |
| 131 ]; | 131 ]; |
| 132 | 132 |
| 133 if (self.importScripts) { | 133 if (self.importScripts) { |
| 134 executeTests(TEST_TARGETS); | 134 executeTests(TEST_TARGETS); |
| 135 done(); | 135 done(); |
| 136 } | 136 } |
| OLD | NEW |