OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="/resources/testharness.js"></script> | 2 <script src="/resources/testharness.js"></script> |
3 <script src="/resources/testharnessreport.js"></script> | 3 <script src="/resources/testharnessreport.js"></script> |
4 <script> | 4 <script> |
5 'use strict'; | 5 'use strict'; |
6 | 6 |
7 promise_test((t) => { | 7 promise_test((t) => { |
8 const p1 = navigator.requestKeyLock(['a', 'b']); | 8 const p1 = navigator.requestKeyboardLock(['a', 'b']); |
9 const p2 = navigator.requestKeyLock(['c', 'd']); | 9 const p2 = navigator.requestKeyboardLock(['c', 'd']); |
10 return promise_rejects(t, null, p2, | 10 return promise_rejects(t, null, p2, |
11 'requestKeyLock() should only be ' + | 11 'requestKeyboardLock() should only be ' + |
12 'executed if another request has finished.'); | 12 'executed if another request has finished.'); |
13 }, 'Keyboard Lock requestKeyLock twice in parallel'); | 13 }, 'Keyboard Lock requestKeyboardLock twice in parallel'); |
14 | 14 |
15 </script> | 15 </script> |
OLD | NEW |