https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e15d2c1a2afc866b09d31558d1af451227be2dca authored by Raymond Toy on 20 September 2018, 21:42:05 UTC
Sub-sample accurate start for ABSN
Tip revision: e15d2c1
idlharness.https.window.js
// 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();']
    });
  }
);
back to top