| Index: third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/idl-KeyboardLock.https.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/idl-KeyboardLock.https.html b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/idl-KeyboardLock.https.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c5f80f62a0f39e85d546b5d5f1e1aa7216653ec9
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/idl-KeyboardLock.https.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<title>Keyboard Lock - Interface</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script>
|
| +'use strict';
|
| +
|
| +test(() => {
|
| + // Navigator has both requestKeyLock() and cancelKeyLock() functions.
|
| + assert_true('requestKeyLock' in navigator);
|
| + assert_true('cancelKeyLock' in navigator);
|
| + assert_equals(typeof(navigator.requestKeyLock), 'function');
|
| + assert_equals(typeof(navigator.cancelKeyLock), 'function');
|
| + const p = navigator.requestKeyLock();
|
| + assert_equals(typeof(p.then), 'function');
|
| + assert_equals(typeof(p.catch), 'function');
|
| +}, 'Keyboard Lock IDL test');
|
| +
|
| +</script>
|
|
|