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

Unified Diff: LayoutTests/http/tests/fetch/script-tests/block-mixed-content-nocors.js

Issue 921673003: [Fetch] Split layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/block-mixed-content-nocors.js
diff --git a/LayoutTests/http/tests/fetch/script-tests/block-mixed-content-nocors.js b/LayoutTests/http/tests/fetch/script-tests/block-mixed-content-nocors.js
new file mode 100644
index 0000000000000000000000000000000000000000..1ff8821e33601a55cf2162238eb418e49a1176f2
--- /dev/null
+++ b/LayoutTests/http/tests/fetch/script-tests/block-mixed-content-nocors.js
@@ -0,0 +1,22 @@
+// OPTIONS: -base-https
+if (self.importScripts) {
+ importScripts('../resources/fetch-test-helpers.js');
+}
+
+var BASE_URL =
+ 'http://127.0.0.1:8000/serviceworker/resources/fetch-access-control.php?ACAOrigin=*&label=';
+var HTTPS_BASE_URL =
+ 'https://127.0.0.1:8443/serviceworker/resources/fetch-access-control.php?ACAOrigin=*&label=';
+var HTTPS_OTHER_BASE_URL =
+ 'https://localhost:8443/serviceworker/resources/fetch-access-control.php?ACAOrigin=*&label=';
+
+var REDIRECT_URL =
+ 'http://127.0.0.1:8000/serviceworker/resources/redirect.php?ACAOrigin=*&Redirect=';
+var HTTPS_REDIRECT_URL =
+ 'https://127.0.0.1:8443/serviceworker/resources/redirect.php?ACAOrigin=*&Redirect=';
+var HTTPS_OTHER_REDIRECT_URL =
+ 'https://localhost:8443/serviceworker/resources/redirect.php?ACAOrigin=*&Redirect=';
+
+testBlockMixedContent('no-cors');
+
+done();

Powered by Google App Engine
This is Rietveld 408576698