| Index: third_party/WebKit/LayoutTests/sensor/gyroscope.html
|
| diff --git a/third_party/WebKit/LayoutTests/sensor/gyroscope.html b/third_party/WebKit/LayoutTests/sensor/gyroscope.html
|
| index 584824f2393d4e3e764f31e556a8fc0e744c0247..fc0250a9c4d15dfdc0bf6a9563c2085de27acbcb 100644
|
| --- a/third_party/WebKit/LayoutTests/sensor/gyroscope.html
|
| +++ b/third_party/WebKit/LayoutTests/sensor/gyroscope.html
|
| @@ -24,10 +24,17 @@ function update_sensor_reading(buffer, expects_modified_reading, readsCount) {
|
| buffer[2] += readsCount;
|
| }
|
|
|
| -function verify_sensor_reading(reading) {
|
| - return reading.x == kDefaultReadingX &&
|
| - reading.y == kDefaultReadingY &&
|
| - reading.z == kDefaultReadingZ;
|
| +function verify_sensor_reading(sensor, should_be_null) {
|
| + if (should_be_null) {
|
| + return sensor.x == null &&
|
| + sensor.y == null &&
|
| + sensor.z == null &&
|
| + sensor.timestamp == null;
|
| + }
|
| + return sensor.x == kDefaultReadingX &&
|
| + sensor.y == kDefaultReadingY &&
|
| + sensor.z == kDefaultReadingZ &&
|
| + sensor.timestamp != null;
|
| }
|
|
|
| runGenericSensorTests(Gyroscope, update_sensor_reading, verify_sensor_reading);
|
|
|