OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Keyboard Lock IDL tests</title> |
| 5 <link rel="help" href="https://garykac.github.io/system-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 <pre id="idl" style="display: none"> |
| 17 partial interface Navigator { |
| 18 [SecureContext, RuntimeEnabled=KeyboardLock, CallWith=ScriptState] Promise<voi
d> requestKeyLock(optional sequence<DOMString> keyCodes); |
| 19 [SecureContext, RuntimeEnabled=KeyboardLock] void cancelKeyLock(); |
| 20 }; |
| 21 </pre> |
| 22 <script> |
| 23 var idl_array = new IdlArray(); |
| 24 idl_array.add_untested_idls(document.getElementById("untested_idl").textContent)
; |
| 25 idl_array.add_idls(document.getElementById("idl").textContent); |
| 26 idl_array.add_objects({ |
| 27 Navigator: ["navigator"] |
| 28 }); |
| 29 idl_array.test(); |
| 30 </script> |
| 31 <div id="log"></div> |
| 32 </body> |
| 33 </html> |
OLD | NEW |