https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 70876b0dfb1e872587e58c60db04619c9dc6cf5e authored by Alex Chiem on 08 April 2018, 19:53:25 UTC
Move \u0BC6 invalid tests to valid
Tip revision: 70876b0
generic-sensor.idl
[SecureContext, Exposed=Window]
interface Sensor : EventTarget {
  readonly attribute boolean activated;
  readonly attribute boolean hasReading;
  readonly attribute DOMHighResTimeStamp? timestamp;
  void start();
  void stop();
  attribute EventHandler onreading;
  attribute EventHandler onactivate;
  attribute EventHandler onerror;
};

dictionary SensorOptions {
  double frequency;
};

[Constructor(DOMString type, SensorErrorEventInit errorEventInitDict),
 SecureContext, Exposed=Window]
interface SensorErrorEvent : Event {
  readonly attribute DOMException error;
};

dictionary SensorErrorEventInit : EventInit {
  required DOMException error;
};
back to top