Index: third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyLock.https.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyLock.https.html b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyLock.https.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..28a516eec76e7a8c63e8dff7add042ed2a11fcd6 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyLock.https.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<script> |
+'use strict'; |
+ |
+promise_test(() => { |
+ const p = navigator.requestKeyLock(['a', 'b']); |
+ assert_equals(typeof(p.then), 'function'); |
foolip
2017/04/25 06:34:15
I guess assert_true(p instanceof Promise) would co
Hzj_jie
2017/04/25 19:27:32
Done.
|
+ assert_equals(typeof(p.catch), 'function'); |
+ return p; |
+}, 'Keyboard Lock requestKeyLock'); |
+ |
+</script> |