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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicy-reporturi.html

Issue 132613003: CSP 1.1: Remove the 'SecurityPolicy' interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test. Created 6 years, 11 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/security/contentSecurityPolicy/1.1/securitypolicy-reporturi.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicy-reporturi.html b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicy-reporturi.html
deleted file mode 100644
index a20fc343a779556ebc12e71ca68dbb451118cf73..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicy-reporturi.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
- <body>
- <script src="../resources/securitypolicy-tests-base.js"></script>
- <script>
- if (document.securityPolicy.reportURIs.length === 0)
- log('PASS document.securityPolicy.reportURIs has length 0 when no policy exists.');
- else
- log('FAIL document.securityPolicy.reportURIs has length ' + document.securityPolicy.reportURIs.length + ' when no policy exists.');
-
- injectPolicy('report-uri http://example.com');
-
- if (document.securityPolicy.reportURIs.length === 1)
- log('PASS document.securityPolicy.reportURIs has length 1 when policy exists.');
- else
- log('FAIL document.securityPolicy.reportURIs has length ' + document.securityPolicy.reportURIs.length + ' when policy exists.');
-
- if (document.securityPolicy.reportURIs[0] === "http://example.com/")
- log('PASS document.securityPolicy.reportURIs[0] is correct.');
- else
- log('FAIL document.securityPolicy.reportURIs[0] is ' + document.securityPolicy.reportURIs[0] + ' (should be `http://example.com/`).');
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698