Chromium Code Reviews| 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 // NavigatorKeyboardLock implements both requestKeyLock() and cancelKeyLock() | |
|
foolip
2017/04/17 08:46:04
NavigatorKeyboardLock is just the name of the Blin
Hzj_jie
2017/04/18 02:26:07
Done.
| |
| 10 // functions; | |
| 11 assert_true('requestKeyLock' in navigator); | |
| 12 assert_true('cancelKeyLock' in navigator); | |
| 13 assert_equals(typeof(navigator.requestKeyLock), 'function'); | |
| 14 assert_equals(typeof(navigator.cancelKeyLock), 'function'); | |
| 15 const p = navigator.requestKeyLock([]); | |
|
foolip
2017/04/17 08:46:04
The argument is optional, omit it here so that Typ
Hzj_jie
2017/04/18 02:26:07
Done.
| |
| 16 assert_equals(typeof(p.then), 'function'); | |
| 17 assert_equals(typeof(p.catch), 'function'); | |
| 18 }, 'Keyboard Lock IDL test'); | |
| 19 | |
| 20 </script> | |
| OLD | NEW |