summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/keyboard-map/idlharness.https.window.js
blob: 07083f7034b539915c8aff444f79368cfa6c4d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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();
  }
);