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

// https://w3c.github.io/accelerometer/

"use strict";

idl_test(
  ['accelerometer'],
  ['generic-sensor', 'dom'],
  idl_array => {
    idl_array.add_objects({
      Accelerometer: ['new Accelerometer();'],
      LinearAccelerationSensor: ['new LinearAccelerationSensor();'],
      GravitySensor: ['new GravitySensor();']
    });
  }
);