| 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 2d9150fe8aec9d1692e0c70482e9eb19d9636182..584824f2393d4e3e764f31e556a8fc0e744c0247 100644
|
| --- a/third_party/WebKit/LayoutTests/sensor/gyroscope.html
|
| +++ b/third_party/WebKit/LayoutTests/sensor/gyroscope.html
|
| @@ -14,17 +14,14 @@ if (!window.testRunner)
|
| const kDefaultReadingX = 1.12345;
|
| const kDefaultReadingY = 2.12345;
|
| const kDefaultReadingZ = 3.12345;
|
| -var readsCount = 0;
|
|
|
| -function update_sensor_reading(buffer, expects_modified_reading) {
|
| +function update_sensor_reading(buffer, expects_modified_reading, readsCount) {
|
| buffer[1] = window.performance.now();
|
| buffer[2] = kDefaultReadingX;
|
| buffer[3] = kDefaultReadingY;
|
| buffer[4] = kDefaultReadingZ;
|
| if (expects_modified_reading)
|
| buffer[2] += readsCount;
|
| -
|
| - readsCount++;
|
| }
|
|
|
| function verify_sensor_reading(reading) {
|
|
|