https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1c0c863e97d7eee37c80f2bcb8e5975b09db92fd authored by Robert Ma on 12 December 2018, 21:42:45 UTC
test!
Tip revision: 1c0c863
idlharness.https.window.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

// https://wicg.github.io/keyboard-map/

'use strict';

idl_test(
  ['keyboard-map'],
  ['html'],
  async idl_array => {
    idl_array.add_objects({
      Navigator: ['navigator'],
      Keyboard: ['navigator.keyboard'],
      KeyboardLayoutMap: ['layout_map'],
    });

    self.layout_map = await navigator.keyboard.getLayoutMap();
  }
);
back to top