Bug 1638167 [wpt PR 23621] - [EventTiming] Fix flakiness in dblclick test, a=testonly

Automatic update from web-platform-tests
[EventTiming] Fix flakiness in dblclick test

The test is flaky on the bots because there are cases where the
processingStart is equal to startTime. Hence, relax the assert.

Bug: 1082739
Change-Id: I0e931a52ade3b714e7a613de3ee1d2187bd1cb1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202683
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#769320}

--

wpt-commits: be7177f41d872bae3f1ba4836d7128142e09947f
wpt-pr: 23621
This commit is contained in:
Nicolás Peña Moreno 2020-05-21 10:22:31 +00:00 коммит произвёл moz-wptsync-bot
Родитель 583db30c4c
Коммит d4a223553c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -28,8 +28,8 @@ function verifyEvent(entry, eventType, targetId, isFirst=false, minDuration=104,
assert_equals(entry.entryType, 'event');
assert_greater_than_equal(entry.duration, minDuration,
"The entry's duration should be greater than or equal to " + minDuration + " ms.");
assert_greater_than(entry.processingStart, entry.startTime,
"The entry's processingStart should be greater than startTime.");
assert_greater_than_equal(entry.processingStart, entry.startTime,
"The entry's processingStart should be greater than or equal to startTime.");
assert_greater_than_equal(entry.processingEnd, entry.processingStart,
"The entry's processingEnd must be at least as large as processingStart.");
// |duration| is a number rounded to the nearest 8 ms, so add 4 to get a lower bound