Automatic update from web-platform-tests Update Keyboard Lock IDL and tests This change is extracted from https://github.com/web-platform-tests/wpt/pull/31151 and done separately because dom.idl is needed for EventTarget. -- wpt-commits: 0bfbf52dcbd2433cd42a7ca43ab57c5b3e6f93a0 wpt-pr: 31164
21 lines
450 B
JavaScript
21 lines
450 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
// https://wicg.github.io/keyboard-map/
|
|
|
|
'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();
|
|
}
|
|
);
|