Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/securitypolicyviolation/idl.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/securitypolicyviolation/idl.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/securitypolicyviolation/idl.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..17f492e7344de6af6b92dd5c86093b0c59bf3a8c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/securitypolicyviolation/idl.html |
@@ -0,0 +1,49 @@ |
+<!DOCTYPE html> |
+<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 type="text/plain" id="untested"> |
+ enum SecurityPolicyViolationEventDisposition { |
+ "enforce", "report" |
+ }; |
+ |
+ dictionary SecurityPolicyViolationEventInit : EventInit { |
+ DOMString documentURI; |
+ DOMString referrer; |
+ DOMString blockedURI; |
+ DOMString violatedDirective; |
+ DOMString effectiveDirective; |
+ DOMString originalPolicy; |
+ DOMString sourceFile; |
+ SecurityPolicyViolationEventDisposition disposition; |
+ unsigned short statusCode; |
+ long lineNumber; |
+ long columnNumber; |
+ }; |
+</script> |
+<script type="text/plain" id="tested"> |
+ [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 sourceFile; |
+ readonly attribute SecurityPolicyViolationEventDisposition disposition; |
+ readonly attribute unsigned short statusCode; |
+ readonly attribute long lineNumber; |
+ readonly attribute long columnNumber; |
+ }; |
+</script> |
+<script> |
+ var idl_array = new IdlArray(); |
+ idl_array.add_untested_idls(document.querySelector('#untested').textContent); |
+ idl_array.add_idls(document.querySelector('#tested').textContent); |
+ idl_array.add_objects({ |
+ SecurityPolicyViolationEvent: ['new SecurityPolicyViolationEvent({})'] |
+ }); |
+ idl_array.test(); |
+</script> |