OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>SecurityPolicyViolationEvent IDL Tests</title> |
| 4 <link rel="author" title="Louay Bassbouss" href="http://www.fokus.fraunhofer.de"
> |
| 5 <link rel="help" href="http://w3c.github.io/presentation-api/#dfn-controlling-us
er-agent"> |
| 6 |
| 7 <script src=/resources/testharness.js></script> |
| 8 <script src=/resources/testharnessreport.js></script> |
| 9 <script src=/resources/WebIDLParser.js></script> |
| 10 <script src=/resources/idlharness.js></script> |
| 11 |
| 12 <script id="idl" type="text/plain"> |
| 13 [Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInit
Dict)] |
| 14 interface SecurityPolicyViolationEvent : Event { |
| 15 readonly attribute DOMString documentURI; |
| 16 readonly attribute DOMString referrer; |
| 17 readonly attribute DOMString blockedURI; |
| 18 readonly attribute DOMString violatedDirective; |
| 19 readonly attribute DOMString effectiveDirective; |
| 20 readonly attribute DOMString originalPolicy; |
| 21 readonly attribute DOMString disposition; |
| 22 readonly attribute DOMString sourceFile; |
| 23 readonly attribute unsigned short statusCode; |
| 24 readonly attribute long lineNumber; |
| 25 readonly attribute long columnNumber; |
| 26 }; |
| 27 |
| 28 dictionary SecurityPolicyViolationEventInit : EventInit { |
| 29 DOMString documentURI; |
| 30 DOMString referrer; |
| 31 DOMString blockedURI; |
| 32 DOMString violatedDirective; |
| 33 DOMString effectiveDirective; |
| 34 DOMString originalPolicy; |
| 35 DOMString disposition; |
| 36 DOMString sourceFile; |
| 37 unsigned short statusCode; |
| 38 long lineNumber; |
| 39 long columnNumber; |
| 40 }; |
| 41 </script> |
| 42 <script> |
| 43 (function() { |
| 44 var idl_array = new IdlArray(); |
| 45 var idls = document.getElementById('idl').textContent; |
| 46 idl_array.add_idls(idls); |
| 47 |
| 48 window.event_to_test = new SecurityPolicyViolationEvent({}); |
| 49 |
| 50 idl_array.add_objects({ |
| 51 SecurityPolicyViolationEvent: ['event_to_test'] |
| 52 }); |
| 53 idl_array.test(); |
| 54 })(); |
| 55 </script> |
OLD | NEW |