https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 40dc6ae8bbd4d1ce358402dd518c8ec26439913b authored by Timothy Gu on 31 July 2018, 19:10:11 UTC
Capture readyState changes before document.open too
Tip revision: 40dc6ae
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();']
    });
  },
  'Test IDL implementation of Accelerometer Sensor'
);
back to top