Index: content/test/data/device_sensors/device_motion_test.html |
diff --git a/content/test/data/device_sensors/device_motion_test.html b/content/test/data/device_sensors/device_motion_test.html |
index 11b4e05df1bb0d9832a7ba1a36df38ebc0527a58..e98aa404acf0c064f386c3d20cc97a0f798d7396 100644 |
--- a/content/test/data/device_sensors/device_motion_test.html |
+++ b/content/test/data/device_sensors/device_motion_test.html |
@@ -2,6 +2,7 @@ |
<head> |
<title>DeviceMotion test</title> |
<script type="text/javascript"> |
+ let expectedInterval = Math.floor(1000 / 60); |
function checkMotionEvent(event) { |
return event.acceleration.x == 1 && |
event.acceleration.y == 2 && |
@@ -12,7 +13,7 @@ |
event.rotationRate.alpha == 7 && |
event.rotationRate.beta == 8 && |
event.rotationRate.gamma == 9 && |
- event.interval == 100; |
+ event.interval == expectedInterval; |
} |
function onMotion(event) { |