Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/testKeyboardLockTwoSequentialRequests.html |
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/testKeyboardLockTwoSequentialRequests.html b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/testKeyboardLockTwoSequentialRequests.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b0078f42f25f96cb658d9794fa2edc0bb7548531 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/testKeyboardLockTwoSequentialRequests.html |
| @@ -0,0 +1,22 @@ |
| +<!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']) |
| + .then(() => { |
| + return navigator.requestKeyLock(['c', 'd']) |
| + .then(() => {}) |
|
foolip
2017/04/17 08:46:04
These bits and the outer .catch ought not be neede
Hzj_jie
2017/04/18 02:26:08
Done.
|
| + .catch((reason) => { |
| + assert_true(false, 'requestKeyLock should succeed: ' + reason); |
| + }); |
| + }) |
| + .catch((reason) => { |
| + assert_true(false, 'requestKeyLock should succeed: ' + reason); |
| + }); |
| +}, 'Keyboard Lock requestKeyLock twice sequentially test'); |
| + |
| +</script> |