OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Keyboard Lock IDL tests</title> |
| 5 <link rel="help" href="https://github.com/w3c/keyboard-lock"/> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 <script src="/resources/WebIDLParser.js"></script> |
| 9 <script src="/resources/idlharness.js"></script> |
| 10 </head> |
| 11 <body> |
| 12 <pre id="untested_idl" style="display: none"> |
| 13 interface Navigator { |
| 14 }; |
| 15 </pre> |
| 16 <!-- |
| 17 The reason of the failure of requestKeyLock test looks like a code defect in |
| 18 idlharness.js. media-capabilities/idlharness.html is also impacted by this |
| 19 issue. See https://codereview.chromium.org/2805763004/#ps620001, which |
| 20 includes a potential fix. |
| 21 TODO(zijiehe): Submit the fix. |
| 22 --> |
| 23 <pre id="idl" style="display: none"> |
| 24 partial interface Navigator { |
| 25 [SecureContext] Promise<void> requestKeyLock(optional sequence<DOMString> keyC
odes = []); |
| 26 [SecureContext] void cancelKeyLock(); |
| 27 }; |
| 28 </pre> |
| 29 <script> |
| 30 var idl_array = new IdlArray(); |
| 31 idl_array.add_untested_idls( |
| 32 document.getElementById("untested_idl").textContent); |
| 33 idl_array.add_idls(document.getElementById("idl").textContent); |
| 34 idl_array.add_objects({ |
| 35 Navigator: ["navigator"] |
| 36 }); |
| 37 idl_array.test(); |
| 38 </script> |
| 39 <div id="log"></div> |
| 40 </body> |
| 41 </html> |
OLD | NEW |