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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-document-csp-appcache.html

Issue 1772303002: CORS-RFC1918: Teach appcache responses to passthrough their socket address. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test. Created 4 years, 9 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: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-document-csp-appcache.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-document-csp-appcache.html b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-document-csp-appcache.html
new file mode 100644
index 0000000000000000000000000000000000000000..b77a776ee8ab1f427fcf40032bab622cbed14b1d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-document-csp-appcache.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="./resources/addressspace-test.js"></script>
+<script>
+ window.onload = function () {
+ addressSpaceTest("http://localhost:8000", "document+appcache+csp", "public",
+ // If we request the same resources again, we should load them from the
+ // memory cache with the same properties.
+ function () {
+ addressSpaceTest("http://localhost:8000", "document+appcache+csp", "public");
+ });
+ addressSpaceTest("http://127.0.0.1:8000", "document+appcache+csp", "public",
+ // If we request the same resources again, we should load them from the
+ // memory cache with the same properties.
+ function () {
+ addressSpaceTest("http://127.0.0.1:8000", "document+appcache+csp", "public");
+ });
+
+ addressSpaceTest("http://example.test:8000", "document+appcache+csp", "public",
+ // If we request the same resources again, we should load them from the
+ // memory cache with the same properties.
+ function () {
+ addressSpaceTest("http://example.test:8000", "document+appcache+csp", "public");
+ });
+ };
+</script>

Powered by Google App Engine
This is Rietveld 408576698