Chromium Code Reviews| 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 04e28a54fca83379e72e58ff027f5a4350770e4a..4b86ff2441c3d641d6c6607327d1f72c4816fabe 100644 |
| --- a/third_party/WebKit/LayoutTests/sensor/gyroscope.html |
| +++ b/third_party/WebKit/LayoutTests/sensor/gyroscope.html |
| @@ -14,12 +14,17 @@ if (!window.testRunner) |
| const kDefaultReadingX = 1.12345; |
| const kDefaultReadingY = 2.12345; |
| const kDefaultReadingZ = 3.12345; |
| +var readsCount = 0; |
| -function update_sensor_reading(buffer) { |
| +function update_sensor_reading(buffer, expects_modified_reading) { |
| buffer[1] = window.performance.now(); |
| buffer[2] = kDefaultReadingX; |
| buffer[3] = kDefaultReadingY; |
| buffer[4] = kDefaultReadingZ; |
| + if (expects_modified_reading) { |
| + buffer[2] += readsCount; |
| + } |
|
Reilly Grant (use Gerrit)
2016/11/28 19:22:53
nit: Unnecessary braces.
Mikhail
2016/11/30 10:31:30
Done.
|
| + readsCount++; |
| } |
| function verify_sensor_reading(reading) { |