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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/securitypolicyviolation-basics.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-basics.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/securitypolicyviolation-basics.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/securitypolicyviolation-basics.html
deleted file mode 100644
index ad657674f1187fa9899dce9575e7141bbd5f2888..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/securitypolicyviolation-basics.html
+++ /dev/null
@@ -1,35 +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',
- 'disposition': 'enforce',
- '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>

Powered by Google App Engine
This is Rietveld 408576698