| Index: third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
|
| diff --git a/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js b/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
|
| index ff03398bf410ff7c1f58676d45255c00072cc746..69fc7d2035929ca842ae9383e551d37547b02291 100644
|
| --- a/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
|
| +++ b/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
|
| @@ -345,11 +345,8 @@ function runGenericSensorTests(sensorType, updateReading, verifyReading) {
|
| // By the moment slow sensor (9 Hz) is notified for the
|
| // next time, the fast sensor (30 Hz) has been notified
|
| // for int(30/9) = 3 times.
|
| - // In actual implementation updates are bound to rAF,
|
| - // (not to a timer) so fluctuations are possible, so we
|
| - // reference to the actual elapsed updates count.
|
| let elapsedUpdates = mockSensor.reading_updates_count() - readingUpdatesCounter;
|
| - assert_approx_equals(fastSensorNotifiedCounter, elapsedUpdates, 1);
|
| + assert_equals(fastSensorNotifiedCounter, elapsedUpdates);
|
| fastSensor.stop();
|
| slowSensor.stop();
|
| resolve(mockSensor);
|
|
|