| 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 5994e7c203e2470a57eeb87c32af0d569958be15..91314c694e7913a8066dfd7772b744a15daa1916 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
|
| @@ -24,7 +24,7 @@ function createTest(eventName, dispatchEventFn) {
|
| async_test(function(t) {
|
| document.addEventListener(eventName, t.step_func(function(e) {
|
| const platformTimestamp = eventSender.lastEventTimestamp(); // in seconds
|
| - const expectedTimestamp = internals.monotonicTimeToZeroBasedDocumentTime(platformTimestamp) * 1000; // in milliseconds
|
| + const expectedTimestamp = Math.floor((internals.monotonicTimeToZeroBasedDocumentTime(platformTimestamp) * 1000) / 0.005) * 0.005;
|
| assert_approx_equals(e.timeStamp, expectedTimestamp, 0.005);
|
| t.done();
|
| }));
|
|
|