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

// https://w3c.github.io/deviceorientation/spec-source-orientation.html

'use strict';

idl_test(
  ['orientation-event'],
  ['html', 'dom'],
  idl_array => {
    idl_array.add_objects({
      Window: ['window'],
      DeviceOrientationEvent: ['new DeviceOrientationEvent("foo")'],
      DeviceMotionEvent: ['new DeviceMotionEvent("foo")'],
    });
  }
);