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(() => { | 7 promise_test(() => { |
8 return navigator.requestKeyLock(['a', 'b']) | 8 return navigator.requestKeyboardLock(['a', 'b']) |
9 .then(() => { | 9 .then(() => { |
10 return navigator.requestKeyLock(['c', 'd']); | 10 return navigator.requestKeyboardLock(['c', 'd']); |
11 }); | 11 }); |
12 }, 'Keyboard Lock requestKeyLock twice sequentially'); | 12 }, 'Keyboard Lock requestKeyboardLock twice sequentially'); |
13 | 13 |
14 </script> | 14 </script> |
OLD | NEW |