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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics.html

Issue 2020053002: 'SecurityPolicyViolation' event data errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics.html
deleted file mode 100644
index 53fd74e1f498fa95b6242e7913de786922f9a7a3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script src="/js-test-resources/js-test.js"></script>
- <script>
- description('Check that a SecurityPolicyViolationEvent handler exists, and that events can be created.');
-
- try {
- shouldBeEqualToString('typeof document.onsecuritypolicyviolation', 'object');
- shouldBeEqualToString('typeof SecurityPolicyViolationEvent', 'function');
- var data = {
- 'documentURI': 'documentURIValue',
- 'referrer': 'referrerValue',
- 'blockedURI': 'blockedURIValue',
- 'violatedDirective': 'violatedDirectiveValue',
- 'effectiveDirective': 'effectiveDirectiveValue',
- 'originalPolicy': 'originalPolicyValue',
- 'sourceFile': 'sourceFileValue',
- 'lineNumber': 1,
- 'columnNumber': 1,
- 'statusCode': 200,
- };
- window.e = new SecurityPolicyViolationEvent('SecurityPolicyViolation', data);
- shouldBeEqualToString('typeof window.e', 'object');
- for (key in data)
- shouldBe('window.e.' + key, JSON.stringify(data[key]));
- } catch (ex) {
- testFailed('Exception thrown: ' + ex.message);
- }
- </script>
-</head>
-<body>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698