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