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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/reporting/securitypolicyviolation-idl.html

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests 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/external/wpt/content-security-policy/reporting/securitypolicyviolation-idl.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/reporting/securitypolicyviolation-idl.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/reporting/securitypolicyviolation-idl.html
new file mode 100644
index 0000000000000000000000000000000000000000..225951285b3a9d471eb2c04bea6bb0586aeb3bc1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/reporting/securitypolicyviolation-idl.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>SecurityPolicyViolationEvent IDL Tests</title>
+<link rel="author" title="Louay Bassbouss" href="http://www.fokus.fraunhofer.de">
+<link rel="help" href="http://w3c.github.io/presentation-api/#dfn-controlling-user-agent">
+
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<script src=/resources/WebIDLParser.js></script>
+<script src=/resources/idlharness.js></script>
+
+<script id="idl" type="text/plain">
+[Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict)]
+interface SecurityPolicyViolationEvent : Event {
+ readonly attribute DOMString documentURI;
+ readonly attribute DOMString referrer;
+ readonly attribute DOMString blockedURI;
+ readonly attribute DOMString violatedDirective;
+ readonly attribute DOMString effectiveDirective;
+ readonly attribute DOMString originalPolicy;
+ readonly attribute DOMString disposition;
+ readonly attribute DOMString sourceFile;
+ readonly attribute unsigned short statusCode;
+ readonly attribute long lineNumber;
+ readonly attribute long columnNumber;
+};
+
+dictionary SecurityPolicyViolationEventInit : EventInit {
+ DOMString documentURI;
+ DOMString referrer;
+ DOMString blockedURI;
+ DOMString violatedDirective;
+ DOMString effectiveDirective;
+ DOMString originalPolicy;
+ DOMString disposition;
+ DOMString sourceFile;
+ unsigned short statusCode;
+ long lineNumber;
+ long columnNumber;
+};
+</script>
+<script>
+ (function() {
+ var idl_array = new IdlArray();
+ var idls = document.getElementById('idl').textContent;
+ idl_array.add_idls(idls);
+
+ window.event_to_test = new SecurityPolicyViolationEvent({});
+
+ idl_array.add_objects({
+ SecurityPolicyViolationEvent: ['event_to_test']
+ });
+ idl_array.test();
+ })();
+</script>

Powered by Google App Engine
This is Rietveld 408576698