Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js

Issue 2668443002: Fix sensors layout tests flakiness (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fc1fc8ed316a9d98204c4853717e2f68f9ba8f2a..82c6ce6c818b49f739b0fa272867462b75fabad5 100644
--- a/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
+++ b/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
@@ -310,7 +310,7 @@ function runGenericSensorTests(sensorType, updateReading, verifyReading) {
// (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_equals(fastSensorNotifiedCounter, elapsedUpdates);
+ assert_approx_equals(fastSensorNotifiedCounter, elapsedUpdates, 1);
fastSensor.stop();
slowSensor.stop();
resolve(mockSensor);
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698