https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 638ed72053ec83d65076325790b7c618bf3a88dc authored by Geoffrey Sneddon on 26 September 2018, 10:38:29 UTC
Revert "Make wptrunner chrome always use the WebDriver executor (#13200)"
Tip revision: 638ed72
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