summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/keyboard-lock/navigator-keyboard-lock-two-sequential-requests.https.html
blob: 520da36dfb43c150936d97376ef68c07b1c4795e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';

promise_test(() => {
  return navigator.keyboard.lock(["KeyA", "KeyB"])
      .then(() => {
        return navigator.keyboard.lock(["KeyC", "KeyD"]);
      });
}, '[Keyboard Lock] keyboard.lock called twice sequentially');

</script>