OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <title>Keyboard Lock - Interface</title> | |
3 <script src="/resources/testharness.js"></script> | |
4 <script src="/resources/testharnessreport.js"></script> | |
5 <script> | |
6 'use strict'; | |
7 | |
8 test(() => { | |
9 // Navigator has both requestKeyLock() and cancelKeyLock() functions. | |
foolip
2017/04/18 05:10:57
This should now be covered by the idlharness.js te
Hzj_jie
2017/04/20 21:23:57
Done.
| |
10 assert_true('requestKeyLock' in navigator); | |
11 assert_true('cancelKeyLock' in navigator); | |
12 assert_equals(typeof(navigator.requestKeyLock), 'function'); | |
13 assert_equals(typeof(navigator.cancelKeyLock), 'function'); | |
14 const p = navigator.requestKeyLock(); | |
15 assert_equals(typeof(p.then), 'function'); | |
16 assert_equals(typeof(p.catch), 'function'); | |
17 }, 'Keyboard Lock IDL test'); | |
18 | |
19 </script> | |
OLD | NEW |