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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/securitypolicyviolation-block-image.html

Issue 2711913003: Upstream Blink's 'securitypolicyviolation' tests. (Closed)
Patch Set: MANIFEST Created 3 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: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/securitypolicyviolation-block-image.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/securitypolicyviolation-block-image.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/securitypolicyviolation-block-image.html
deleted file mode 100644
index 88a769396d2e3f3d834586376e6bf68282708b07..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/securitypolicyviolation-block-image.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta http-equiv="Content-Security-Policy" content="img-src 'none'">
- <script src="/js-test-resources/js-test.js"></script>
- <script src="../resources/securitypolicyviolation-test.js"></script>
- <script>
- description('Check that a SecurityPolicyViolationEvent is fired upon blocking an image.');
-
- var expectations = {
- 'documentURI': document.location.toString(),
- 'referrer': document.referrer,
- 'blockedURI': 'http://127.0.0.1:8000/security/resources/abe.png',
- 'violatedDirective': 'img-src',
- 'effectiveDirective': 'img-src',
- 'originalPolicy': 'img-src \'none\'',
- 'disposition': 'enforce',
- 'sourceFile': '',
- 'lineNumber': 0,
- 'columnNumber': 0,
- 'statusCode': 200,
- };
-
- function run() {
- var img = document.createElement('img');
- img.src = '/security/resources/abe.png';
- document.body.appendChild(img);
- }
- </script>
-</head>
-<body>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698