https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 21cde61f3f55429f32256444ddf25e28769e2ae8 authored by Josh Matthews on 23 December 2018, 05:25:51 UTC
Claim to support testdriver in servodriver
Tip revision: 21cde61
navigator-keyboard-lock-two-sequential-requests.https.html
<!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>
back to top