Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/testKeyboardLockRequest.html |
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/testKeyboardLockRequest.html b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/testKeyboardLockRequest.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e0f7d2c8065867f13c3b86a5d2eda6661ec77c6e |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/testKeyboardLockRequest.html |
| @@ -0,0 +1,16 @@ |
| +<!DOCTYPE html> |
| +<title>Keyboard Lock - Interface</title> |
| +<script src="/resources/testharness.js"></script> |
| +<script src="/resources/testharnessreport.js"></script> |
| +<script> |
| +'use strict'; |
| + |
| +promise_test(() => { |
| + return navigator.requestKeyLock(['a', 'b']) |
|
foolip
2017/04/17 08:46:04
Ditto about this name not being in the spec.
Hzj_jie
2017/04/18 02:26:07
Yes, Gary is changing the spec.
|
| + .then(() => {}) |
|
foolip
2017/04/17 08:46:04
I think you can omit both the .then and the .catch
Hzj_jie
2017/04/18 02:26:07
Done.
|
| + .catch((reason) => { |
| + assert_true(false, 'requestKeyLock should succeed: ' + reason); |
| + }); |
| +}, 'Keyboard Lock requestKeyLock test'); |
|
foolip
2017/04/17 08:46:04
Ditto about having just one title in the file.
Hzj_jie
2017/04/18 02:26:08
Done.
|
| + |
| +</script> |