https://github.com/web-platform-tests/wpt
Revision ab7222f9063dedb351083804201a719cd6a81347 authored by bmac on 22 March 2018, 20:38:42 UTC, committed by bmac on 23 March 2018, 18:20:17 UTC
1 parent 9dcebcb
Raw File
Tip revision: ab7222f9063dedb351083804201a719cd6a81347 authored by bmac on 22 March 2018, 20:38:42 UTC
Do not print logs twice when running wpt lint
Tip revision: ab7222f
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(['a', 'b'])
      .then(() => {
        return navigator.keyboard.lock(['c', 'd']);
      });
}, '[Keyboard Lock] keyboard.lock called twice sequentially');

</script>
back to top