| Index: third_party/WebKit/LayoutTests/fast/events/hr-timestamp/input-events.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/input-events.html b/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/input-events.html
|
| index 91314c694e7913a8066dfd7772b744a15daa1916..b0c4caee042811f0a86599795e27a5a69d5e2163 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/input-events.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/input-events.html
|
| @@ -25,7 +25,9 @@ function createTest(eventName, dispatchEventFn) {
|
| document.addEventListener(eventName, t.step_func(function(e) {
|
| const platformTimestamp = eventSender.lastEventTimestamp(); // in seconds
|
| const expectedTimestamp = Math.floor((internals.monotonicTimeToZeroBasedDocumentTime(platformTimestamp) * 1000) / 0.005) * 0.005;
|
| - assert_approx_equals(e.timeStamp, expectedTimestamp, 0.005);
|
| + // Use 0.005001 instead of 0.005 to deal with floating point
|
| + // comparison issues.
|
| + assert_approx_equals(e.timeStamp, expectedTimestamp, 0.005001);
|
| t.done();
|
| }));
|
| dispatchEventFn();
|
|
|