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

Unified Diff: LayoutTests/http/tests/fetch/script-tests/fetch-access-control-redirect-loop.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-redirect-loop.js
diff --git a/LayoutTests/http/tests/fetch/script-tests/fetch-access-control-redirect-loop.js b/LayoutTests/http/tests/fetch/script-tests/fetch-access-control-redirect-loop.js
deleted file mode 100644
index 6b25e3003802f3fb26ea303396ef7fea3b5abe5c..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/fetch/script-tests/fetch-access-control-redirect-loop.js
+++ /dev/null
@@ -1,50 +0,0 @@
-if (self.importScripts) {
- importScripts('../resources/fetch-test-helpers.js');
- importScripts('../resources/fetch-access-control-util.js');
-}
-
-var TEST_TARGETS = [
- // Redirect loop: same origin -> same origin
- [REDIRECT_LOOP_URL + encodeURIComponent(BASE_URL) + '&Count=20&mode=cors',
- [fetchResolved, hasContentLength, hasBody, typeBasic],
- [methodIsGET, authCheck1]],
- [REDIRECT_LOOP_URL + encodeURIComponent(BASE_URL) + '&Count=21&mode=cors',
- [fetchRejected]],
-
- // Redirect loop: same origin -> other origin
- [REDIRECT_LOOP_URL + encodeURIComponent(OTHER_BASE_URL + '&ACAOrigin=*') +
- '&Count=20&mode=cors&method=GET',
- [fetchResolved, noContentLength, noServerHeader, hasBody, typeCors],
- [methodIsGET, authCheckNone]],
- // FIXME: due to the current implementation of Chromium,
- // Count=21 is resolved, Count=22 is rejected.
- // https://crbug.com/353768
- [REDIRECT_LOOP_URL + encodeURIComponent(OTHER_BASE_URL + '&ACAOrigin=*') +
- '&Count=22&mode=cors&method=GET',
- [fetchRejected]],
-
- // Redirect loop: other origin -> same origin
- [OTHER_REDIRECT_LOOP_URL + encodeURIComponent(BASE_URL + 'ACAOrigin=*') +
- '&Count=20&mode=cors&method=GET&ACAOrigin=*',
- [fetchResolved, noContentLength, noServerHeader, hasBody, typeCors],
- [methodIsGET, authCheckNone]],
- [OTHER_REDIRECT_LOOP_URL + encodeURIComponent(BASE_URL + 'ACAOrigin=*') +
- '&Count=21&mode=cors&method=GET&ACAOrigin=*',
- [fetchRejected]],
-
- // Redirect loop: other origin -> other origin
- [OTHER_REDIRECT_LOOP_URL +
- encodeURIComponent(OTHER_BASE_URL + 'ACAOrigin=*') +
- '&Count=20&mode=cors&method=GET&ACAOrigin=*',
- [fetchResolved, noContentLength, noServerHeader, hasBody, typeCors],
- [methodIsGET, authCheckNone]],
- [OTHER_REDIRECT_LOOP_URL +
- encodeURIComponent(OTHER_BASE_URL + 'ACAOrigin=*') +
- '&Count=21&mode=cors&method=GET&ACAOrigin=*',
- [fetchRejected]],
-];
-
-if (self.importScripts) {
- executeTests(TEST_TARGETS);
- done();
-}

Powered by Google App Engine
This is Rietveld 408576698