| Index: third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
|
| diff --git a/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html b/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
|
| index 63b18830dc6846af615f6496ad360296c9f4c47d..33e9a8b41bacc57c27a42c2cedd66e6437ac229a 100644
|
| --- a/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
|
| +++ b/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
|
| @@ -24,5 +24,14 @@ function verify_sensor_reading(reading) {
|
| return reading.illuminance == kDefaultReadingValue;
|
| }
|
|
|
| +function verify_sensor_reading(sensor, should_be_null) {
|
| + if (should_be_null) {
|
| + return sensor.illuminance == null &&
|
| + sensor.timestamp == null;
|
| + }
|
| + return sensor.illuminance == kDefaultReadingValue &&
|
| + sensor.timestamp != null;
|
| +}
|
| +
|
| runGenericSensorTests(AmbientLightSensor, update_sensor_reading, verify_sensor_reading);
|
| </script>
|
|
|