navigator-keyboard-map-two-sequential-requests.https.html (364B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <script> 5 'use strict'; 6 7 promise_test(() => { 8 return navigator.keyboard.getLayoutMap() 9 .then(() => { 10 return navigator.keyboard.getLayoutMap(); 11 }); 12 }, '[Keyboard Map] getLayoutMap() called twice sequentially'); 13 14 </script>