Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 14 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /keyboard-map/idlharness.https.window.html - WPT Dashboard Interop Dashboard
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
idl_test(
['keyboard-map'],
['keyboard-lock', 'html', 'dom'],
async idl_array => {
idl_array.add_objects({
Navigator: ['navigator'],
Keyboard: ['navigator.keyboard'],
KeyboardLayoutMap: ['layout_map'],
});
self.layout_map = await navigator.keyboard.getLayoutMap();
}
);