mirror of
https://github.com/servo/servo.git
synced 2025-10-03 18:19:14 +01:00
15 lines
466 B
HTML
15 lines
466 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.keyboard.lock(['a', 'b']);
|
|
const p2 = navigator.keyboard.lock(['c', 'd']);
|
|
return promise_rejects(t, null, p2,
|
|
'keyboard.lock() should only be ' +
|
|
'executed if another request has finished.');
|
|
}, '[Keyboard Lock] keyboard.lock twice in parallel');
|
|
|
|
</script>
|