mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 09:52:50 -10:00
16 lines
488 B
HTML
16 lines
488 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.requestKeyboardLock(['a', 'b']);
|
|
const p2 = navigator.requestKeyboardLock(['c', 'd']);
|
|
return promise_rejects(t, null, p2,
|
|
'requestKeyboardLock() should only be ' +
|
|
'executed if another request has finished.');
|
|
}, 'Keyboard Lock requestKeyboardLock twice in parallel');
|
|
|
|
</script>
|