Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(615)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/testKeyboardLockTwoSequentialRequests.html

Issue 2805763004: [System-Keyboard-Lock] Forward navigator functions to RenderFrameHost (Closed)
Patch Set: Synchronize latest changes Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Keyboard Lock - Interface</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script>
6 'use strict';
7
8 promise_test(() => {
9 return navigator.requestKeyLock(['a', 'b'])
10 .then(() => {
11 return navigator.requestKeyLock(['c', 'd'])
12 .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.
13 .catch((reason) => {
14 assert_true(false, 'requestKeyLock should succeed: ' + reason);
15 });
16 })
17 .catch((reason) => {
18 assert_true(false, 'requestKeyLock should succeed: ' + reason);
19 });
20 }, 'Keyboard Lock requestKeyLock twice sequentially test');
21
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698