diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 72d76afb7009..a364288d89e5 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -563803,7 +563803,7 @@ "support" ], "interfaces/accelerometer.idl": [ - "eaa4e8fd76cf191c84921df18e9347a087e8c3d9", + "badeb96ae83c8173bb00884346d4f6dc675bbffa", "support" ], "interfaces/ambient-light.idl": [ diff --git a/testing/web-platform/tests/interfaces/accelerometer.idl b/testing/web-platform/tests/interfaces/accelerometer.idl index df78885d5609..7e5509d432bd 100644 --- a/testing/web-platform/tests/interfaces/accelerometer.idl +++ b/testing/web-platform/tests/interfaces/accelerometer.idl @@ -1,11 +1,17 @@ -[Constructor(optional SensorOptions options), SecureContext, Exposed=Window] +enum LocalCoordinateSystem { "device", "screen" }; + +dictionary SpatialSensorOptions : SensorOptions { + LocalCoordinateSystem referenceFrame = "device"; +}; + +[Constructor(optional SpatialSensorOptions 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] +[Constructor(optional SpatialSensorOptions options), SecureContext, Exposed=Window] interface LinearAccelerationSensor : Accelerometer { };