| 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 1fd4e1074c1e40f17ddd131f60d8be2ca78e5e37..282f6336ab5bf419537492d43f168d03bcb16ee3 100644
|
| --- a/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
|
| +++ b/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
|
| @@ -12,10 +12,15 @@ if (!window.testRunner)
|
| debug('This test cannot be run without the TestRunner');
|
|
|
| const kDefaultReadingValue = 3.1415;
|
| +var readsCount = 0;
|
|
|
| -function update_sensor_reading(buffer) {
|
| +function update_sensor_reading(buffer, expects_modified_reading) {
|
| buffer[1] = window.performance.now();
|
| buffer[2] = kDefaultReadingValue;
|
| + if (expects_modified_reading)
|
| + buffer[2] += readsCount;
|
| +
|
| + readsCount++;
|
| }
|
|
|
| function verify_sensor_reading(reading) {
|
|
|