Index: LayoutTests/http/tests/fetch/script-tests/fetch-access-control-cors.js |
diff --git a/LayoutTests/http/tests/fetch/script-tests/fetch-access-control-cors.js b/LayoutTests/http/tests/fetch/script-tests/fetch-access-control-cors.js |
deleted file mode 100644 |
index cb96286e212a4e8c1fb43208ce6b3db2af4fd956..0000000000000000000000000000000000000000 |
--- a/LayoutTests/http/tests/fetch/script-tests/fetch-access-control-cors.js |
+++ /dev/null |
@@ -1,94 +0,0 @@ |
-if (self.importScripts) { |
- importScripts('../resources/fetch-test-helpers.js'); |
- importScripts('../resources/fetch-access-control-util.js'); |
-} |
- |
-// Tests for CORS check and CORS filtered response. |
- |
-var TEST_TARGETS = [ |
- // CORS test |
- |
- [OTHER_BASE_URL + 'mode=same-origin&method=GET', [fetchRejected]], |
- [OTHER_BASE_URL + 'mode=same-origin&method=POST', [fetchRejected]], |
- [OTHER_BASE_URL + 'mode=same-origin&method=PUT', [fetchRejected]], |
- [OTHER_BASE_URL + 'mode=same-origin&method=XXX', [fetchRejected]], |
- |
- // method=GET |
- |
- // CORS check |
- // https://fetch.spec.whatwg.org/#concept-cors-check |
- // Tests for Access-Control-Allow-Origin header. |
- [OTHER_BASE_URL + 'mode=cors&method=GET', |
- [fetchRejected]], |
- [OTHER_BASE_URL + 'mode=cors&method=GET&ACAOrigin=*', |
- [fetchResolved, noContentLength, noServerHeader, hasBody, typeCors], |
- [methodIsGET, authCheckNone]], |
- [OTHER_BASE_URL + 'mode=cors&method=GET&ACAOrigin=' + BASE_ORIGIN, |
- [fetchResolved, noContentLength, noServerHeader, hasBody, typeCors], |
- [methodIsGET]], |
- [OTHER_BASE_URL + 'mode=cors&method=GET&ACAOrigin=' + BASE_ORIGIN + |
- ',http://www.example.com', |
- [fetchRejected]], |
- [OTHER_BASE_URL + 'mode=cors&method=GET&ACAOrigin=http://www.example.com', |
- [fetchRejected]], |
- |
- // CORS filtered response |
- // https://fetch.spec.whatwg.org/#concept-filtered-response-cors |
- // Tests for Access-Control-Expose-Headers header. |
- [OTHER_BASE_URL + 'mode=cors&method=GET&ACAOrigin=*&ACEHeaders=X-ServiceWorker-ServerHeader', |
- [fetchResolved, noContentLength, hasServerHeader, hasBody, typeCors], |
- [methodIsGET]], |
- [OTHER_BASE_URL + 'mode=cors&method=GET&ACAOrigin=' + BASE_ORIGIN + |
- '&ACEHeaders=X-ServiceWorker-ServerHeader', |
- [fetchResolved, noContentLength, hasServerHeader, hasBody, typeCors], |
- [methodIsGET]], |
- [OTHER_BASE_URL + 'mode=cors&method=GET&ACAOrigin=*&ACEHeaders=Content-Length, X-ServiceWorker-ServerHeader', |
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeCors], |
- [methodIsGET]], |
- [OTHER_BASE_URL + 'mode=cors&method=GET&ACAOrigin=' + BASE_ORIGIN + |
- '&ACEHeaders=Content-Length, X-ServiceWorker-ServerHeader', |
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeCors], |
- [methodIsGET]], |
- |
- // method=POST |
- |
- // CORS check |
- // https://fetch.spec.whatwg.org/#concept-cors-check |
- // Tests for Access-Control-Allow-Origin header. |
- [OTHER_BASE_URL + 'mode=cors&method=POST', |
- [fetchRejected]], |
- [OTHER_BASE_URL + 'mode=cors&method=POST&ACAOrigin=*', |
- [fetchResolved, noContentLength, noServerHeader, hasBody, typeCors], |
- [methodIsPOST]], |
- [OTHER_BASE_URL + 'mode=cors&method=POST&ACAOrigin=' + BASE_ORIGIN, |
- [fetchResolved, noContentLength, noServerHeader, hasBody, typeCors], |
- [methodIsPOST]], |
- [OTHER_BASE_URL + 'mode=cors&method=POST&ACAOrigin=' + BASE_ORIGIN + |
- ',http://www.example.com', |
- [fetchRejected]], |
- [OTHER_BASE_URL + 'mode=cors&method=POST&ACAOrigin=http://www.example.com', |
- [fetchRejected]], |
- |
- // CORS filtered response |
- // https://fetch.spec.whatwg.org/#concept-filtered-response-cors |
- // Tests for Access-Control-Expose-Headers header. |
- [OTHER_BASE_URL + 'mode=cors&method=POST&ACAOrigin=*&ACEHeaders=X-ServiceWorker-ServerHeader', |
- [fetchResolved, noContentLength, hasServerHeader, hasBody, typeCors], |
- [methodIsPOST]], |
- [OTHER_BASE_URL + 'mode=cors&method=POST&ACAOrigin=' + BASE_ORIGIN + |
- '&ACEHeaders=X-ServiceWorker-ServerHeader', |
- [fetchResolved, noContentLength, hasServerHeader, hasBody, typeCors], |
- [methodIsPOST]], |
- [OTHER_BASE_URL + 'mode=cors&method=POST&ACAOrigin=*&ACEHeaders=Content-Length, X-ServiceWorker-ServerHeader', |
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeCors], |
- [methodIsPOST]], |
- [OTHER_BASE_URL + 'mode=cors&method=POST&ACAOrigin=' + BASE_ORIGIN + |
- '&ACEHeaders=Content-Length, X-ServiceWorker-ServerHeader', |
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeCors], |
- [methodIsPOST]], |
-]; |
- |
-if (self.importScripts) { |
- executeTests(TEST_TARGETS); |
- done(); |
-} |