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); | |
foolip
2017/04/18 05:10:57
Copy the IDL from the spec, not Blink's IDL files.
Hzj_jie
2017/04/20 21:23:58
Done.
| |
19 [SecureContext, RuntimeEnabled=KeyboardLock] void cancelKeyLock(); | |
20 }; | |
21 </pre> | |
22 <script> | |
23 var idl_array = new IdlArray(); | |
24 idl_array.add_untested_idls( | |
25 document.getElementById("untested_idl").textContent); | |
26 idl_array.add_idls(document.getElementById("idl").textContent); | |
27 idl_array.add_objects({ | |
28 Navigator: ["navigator"] | |
29 }); | |
30 idl_array.test(); | |
31 </script> | |
32 <div id="log"></div> | |
33 </body> | |
34 </html> | |
OLD | NEW |