Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: LayoutTests/http/tests/fetch/script-tests/fetch-access-control-nocors.js

Issue 1267263003: Rename fetch layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/fetch/script-tests/fetch-access-control-nocors.js
diff --git a/LayoutTests/http/tests/fetch/script-tests/fetch-access-control-nocors.js b/LayoutTests/http/tests/fetch/script-tests/fetch-access-control-nocors.js
deleted file mode 100644
index 809ce9d551817a6cd0ba9acc16f1a9c737149804..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/fetch/script-tests/fetch-access-control-nocors.js
+++ /dev/null
@@ -1,79 +0,0 @@
-if (self.importScripts) {
- importScripts('../resources/fetch-test-helpers.js');
- importScripts('../resources/fetch-access-control-util.js');
-}
-
-var TEST_TARGETS = [
- // Test that default mode is no-cors in serviceworker-proxied tests.
- onlyOnServiceWorkerProxiedTest(
- [BASE_URL + 'method=GET',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET, authCheck1]]),
- onlyOnServiceWorkerProxiedTest(
- [BASE_URL + 'method=GET&headers={}',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET]]),
- onlyOnServiceWorkerProxiedTest(
- [BASE_URL + 'method=GET&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET, noCustomHeader]]),
- onlyOnServiceWorkerProxiedTest(
- [BASE_URL + 'method=POST&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsPOST, noCustomHeader]]),
- onlyOnServiceWorkerProxiedTest(
- [BASE_URL + 'method=PUT',
- [fetchError]]),
- onlyOnServiceWorkerProxiedTest(
- [BASE_URL + 'method=XXX',
- [fetchError]]),
-
- onlyOnServiceWorkerProxiedTest(
- [OTHER_BASE_URL + 'method=GET&headers=CUSTOM',
- [fetchResolved, noContentLength, noServerHeader, noBody, typeOpaque],
- [methodIsGET, noCustomHeader, authCheck2]]),
- onlyOnServiceWorkerProxiedTest(
- [OTHER_BASE_URL + 'method=POST&headers=CUSTOM',
- [fetchResolved, noContentLength, noServerHeader, noBody, typeOpaque],
- [methodIsPOST, noCustomHeader]]),
- onlyOnServiceWorkerProxiedTest(
- [OTHER_BASE_URL + 'method=PUT&headers=CUSTOM',
- [fetchError]]),
- onlyOnServiceWorkerProxiedTest(
- [OTHER_BASE_URL + 'method=XXX&headers=CUSTOM',
- [fetchError]]),
-
- // Test mode=no-cors.
- [BASE_URL + 'mode=no-cors&method=GET',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET, authCheck1]],
- [BASE_URL + 'mode=no-cors&method=GET&headers={}',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET]],
- [BASE_URL + 'mode=no-cors&method=GET&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET, noCustomHeader]],
- [BASE_URL + 'mode=no-cors&method=POST&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsPOST, noCustomHeader]],
- [BASE_URL + 'mode=no-cors&method=PUT',
- [fetchError]],
- [BASE_URL + 'mode=no-cors&method=XXX',
- [fetchError]],
-
- [OTHER_BASE_URL + 'mode=no-cors&method=GET&headers=CUSTOM',
- [fetchResolved, noContentLength, noServerHeader, noBody, typeOpaque],
- onlyOnServiceWorkerProxiedTest([methodIsGET, noCustomHeader, authCheck2])],
- [OTHER_BASE_URL + 'mode=no-cors&method=POST&headers=CUSTOM',
- [fetchResolved, noContentLength, noServerHeader, noBody, typeOpaque],
- onlyOnServiceWorkerProxiedTest([methodIsPOST, noCustomHeader])],
- [OTHER_BASE_URL + 'mode=no-cors&method=PUT&headers=CUSTOM',
- [fetchError]],
- [OTHER_BASE_URL + 'mode=no-cors&method=XXX&headers=CUSTOM',
- [fetchError]],
-];
-
-if (self.importScripts) {
- executeTests(TEST_TARGETS);
- done();
-}

Powered by Google App Engine
This is Rietveld 408576698