OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <title> | |
3 Keyboard Lock - The second of two parallel requests should be rejected | |
foolip
2017/04/17 08:46:04
The spec doesn't return a promise and thus doesn't
Hzj_jie
2017/04/18 02:26:08
I have added TODO in the idl file. Once we ship it
| |
4 </title> | |
5 <script src="/resources/testharness.js"></script> | |
6 <script src="/resources/testharnessreport.js"></script> | |
7 <script> | |
8 'use strict'; | |
9 | |
10 promise_test((t) => { | |
11 const p1 = navigator.requestKeyLock(['a', 'b']); | |
12 const p2 = navigator.requestKeyLock(['c', 'd']); | |
13 return promise_rejects(t, null, p2, | |
14 'requestKeyLock() should only be ' + | |
15 'executed if another request has finished.'); | |
16 }, 'Keyboard Lock requestKeyLock twice concurrently test'); | |
17 | |
18 </script> | |
OLD | NEW |