mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
15 lines
460 B
HTML
15 lines
460 B
HTML
<!DOCTYPE html>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script>
|
|
'use strict';
|
|
|
|
promise_test((t) => {
|
|
const p1 = navigator.keyboardLock(['a', 'b']);
|
|
const p2 = navigator.keyboardLock(['c', 'd']);
|
|
return promise_rejects(t, null, p2,
|
|
'keyboardLock() should only be ' +
|
|
'executed if another request has finished.');
|
|
}, 'Keyboard Lock keyboardLock twice in parallel');
|
|
|
|
</script>
|