OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src=/resources/testharness.js></script> |
| 3 <script src=/resources/testharnessreport.js></script> |
| 4 <script src=/resources/WebIDLParser.js></script> |
| 5 <script src=/resources/idlharness.js></script> |
| 6 <script type="text/plain" id="untested"> |
| 7 enum SecurityPolicyViolationEventDisposition { |
| 8 "enforce", "report" |
| 9 }; |
| 10 |
| 11 dictionary SecurityPolicyViolationEventInit : EventInit { |
| 12 DOMString documentURI; |
| 13 DOMString referrer; |
| 14 DOMString blockedURI; |
| 15 DOMString violatedDirective; |
| 16 DOMString effectiveDirective; |
| 17 DOMString originalPolicy; |
| 18 DOMString sourceFile; |
| 19 SecurityPolicyViolationEventDisposition disposition; |
| 20 unsigned short statusCode; |
| 21 long lineNumber; |
| 22 long columnNumber; |
| 23 }; |
| 24 </script> |
| 25 <script type="text/plain" id="tested"> |
| 26 [Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventIn
itDict)] |
| 27 interface SecurityPolicyViolationEvent : Event { |
| 28 readonly attribute DOMString documentURI; |
| 29 readonly attribute DOMString referrer; |
| 30 readonly attribute DOMString blockedURI; |
| 31 readonly attribute DOMString violatedDirective; |
| 32 readonly attribute DOMString effectiveDirective; |
| 33 readonly attribute DOMString originalPolicy; |
| 34 readonly attribute DOMString sourceFile; |
| 35 readonly attribute SecurityPolicyViolationEventDisposition disposi
tion; |
| 36 readonly attribute unsigned short statusCode; |
| 37 readonly attribute long lineNumber; |
| 38 readonly attribute long columnNumber; |
| 39 }; |
| 40 </script> |
| 41 <script> |
| 42 var idl_array = new IdlArray(); |
| 43 idl_array.add_untested_idls(document.querySelector('#untested').textContent)
; |
| 44 idl_array.add_idls(document.querySelector('#tested').textContent); |
| 45 idl_array.add_objects({ |
| 46 SecurityPolicyViolationEvent: ['new SecurityPolicyViolationEvent({})']
|
| 47 }); |
| 48 idl_array.test(); |
| 49 </script> |
OLD | NEW |