Update web-platform-tests to revision 58b72393db0bd273bb93268c33666cf893feb985

This commit is contained in:
Josh Matthews 2017-10-31 08:58:31 -04:00
parent 43a4f01647
commit 64e0a52537
12717 changed files with 59835 additions and 59820 deletions

View file

@ -0,0 +1,14 @@
[Constructor(optional SensorOptions options), SecureContext, Exposed=Window]
interface Accelerometer : Sensor {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};
[Constructor(optional SensorOptions options), SecureContext, Exposed=Window]
interface LinearAccelerationSensor : Accelerometer {
};
[Constructor(optional SensorOptions options), SecureContext, Exposed=Window]
interface GravitySensor : Accelerometer {
};

View file

@ -0,0 +1,6 @@
[Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window]
interface Gyroscope : Sensor {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};

View file

@ -0,0 +1,16 @@
[Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window]
interface Magnetometer : Sensor {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};
[Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window]
interface UncalibratedMagnetometer : Sensor {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
readonly attribute double? xBias;
readonly attribute double? yBias;
readonly attribute double? zBias;
};

View file

@ -0,0 +1,15 @@
typedef (Float32Array or Float64Array or DOMMatrix) RotationMatrixType;
[SecureContext, Exposed=Window]
interface OrientationSensor : Sensor {
readonly attribute FrozenArray<double>? quaternion;
void populateMatrix(RotationMatrixType targetMatrix);
};
[Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window]
interface AbsoluteOrientationSensor : OrientationSensor {
};
[Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window]
interface RelativeOrientationSensor : OrientationSensor {
};