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

Unified Diff: LayoutTests/http/tests/fetch/script-tests/fetch-access-control.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.js
diff --git a/LayoutTests/http/tests/fetch/script-tests/fetch-access-control.js b/LayoutTests/http/tests/fetch/script-tests/fetch-access-control.js
deleted file mode 100644
index 3fa0da5a5bfedcd85c5061bdf529cdfd93ef988d..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/fetch/script-tests/fetch-access-control.js
+++ /dev/null
@@ -1,73 +0,0 @@
-// OPTIONS: ,-base-https-other-https
-if (self.importScripts) {
- importScripts('../resources/fetch-test-helpers.js');
- importScripts('../resources/fetch-access-control-util.js');
-}
-
-var referer;
-
-if (self.importScripts) {
- // fetch/workers or fetch/serviceworker
- referer = BASE_ORIGIN +
- '/fetch/script-tests/fetch-access-control.js?' + TEST_OPTIONS;
-} else if(location.pathname.startsWith(
- '/fetch/serviceworker-proxied/fetch-access-control')) {
- // fetch/serviceworker-proxied
- referer = WORKER_URL;
-} else {
- // fetch/window
- referer = BASE_ORIGIN +
- '/fetch/window/fetch-access-control' + TEST_OPTIONS + '.html';
-}
-
-var TEST_TARGETS = [
- // Test mode=same-origin.
- [BASE_URL + 'mode=same-origin&method=GET',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET, authCheck1]],
- [BASE_URL + 'mode=same-origin&method=GET&headers={}',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET]],
- [BASE_URL + 'mode=same-origin&method=GET&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET, hasCustomHeader]],
- [BASE_URL + 'mode=same-origin&method=POST&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsPOST, hasCustomHeader]],
- [BASE_URL + 'mode=same-origin&method=PUT&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsPUT, hasCustomHeader]],
- [BASE_URL + 'mode=same-origin&method=XXX&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsXXX, hasCustomHeader]],
-
- // Test mode=cors.
- [BASE_URL + 'mode=cors&method=GET',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET, authCheck1]],
- [BASE_URL + 'mode=cors&method=GET&headers={}',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET]],
- [BASE_URL + 'mode=cors&method=GET&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsGET, hasCustomHeader]],
- [BASE_URL + 'mode=cors&method=POST&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsPOST, hasCustomHeader]],
- [BASE_URL + 'mode=cors&method=PUT&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsPUT, hasCustomHeader]],
- [BASE_URL + 'mode=cors&method=XXX&headers=CUSTOM',
- [fetchResolved, hasContentLength, hasServerHeader, hasBody, typeBasic],
- [methodIsXXX, hasCustomHeader]],
-
- // Referer check
- [BASE_URL + 'mode=same-origin',
- [fetchResolved],
- [checkJsonpHeader.bind(this, 'Referer', referer)]],
-];
-
-if (self.importScripts) {
- executeTests(TEST_TARGETS);
- done();
-}

Powered by Google App Engine
This is Rietveld 408576698