summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/uievents/idlharness.window.js
blob: ca8d23e4f6fdeee7ff20a1d1a1482ca868bd0650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long

'use strict';

idl_test(
  ['uievents'],
  ['html', 'dom'],
  idl_array => {
    idl_array.add_objects({
      FocusEvent: ['new FocusEvent("event")'],
      MouseEvent: ['new MouseEvent("event")'],
      WheelEvent: ['new WheelEvent("event")'],
      KeyboardEvent: ['new KeyboardEvent("event")'],
      CompositionEvent: ['new CompositionEvent("event")'],
      UIEvent: ['new UIEvent("event")'],
      InputEvent: ['new InputEvent("event")'],
      TextEvent: ['(() => { const ev = document.createEvent("TextEvent"); ev.initTextEvent("event"); return ev; })()'],
    });
  }
);