Bug 1640678 [wpt PR 23758] - [EventTiming] Use polling in performance.eventCounts...
commit98a5aa00398c5cda7d83769480522a457f622885
authorNicolás Peña Moreno <npm@chromium.org>
Wed, 27 May 2020 21:36:48 +0000 (27 21:36 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 29 May 2020 20:22:19 +0000 (29 20:22 +0000)
tree5e7e262971c63fb1efd22255ced281901a05dcd4
parentfb3782980f3c475162629001b1efee38c782d354
Bug 1640678 [wpt PR 23758] - [EventTiming] Use polling in performance.eventCounts test, a=testonly

Automatic update from web-platform-tests
[EventTiming] Use polling in performance.eventCounts test

It looks like actions.send() does not wait for the events to get
processed in order to resolve the promise, which means eventCounts may
not be populated by the time we begin testing it. Hence, in this CL we
perform a polling-based approach. Sample failure:
https://isolateserver.appspot.com/browse?namespace=default-gzip&digest=8e7df6aa16ccbffabef2b11c5f2d9aaa02d396c1&as=layout-test-results%5Cexternal%5Cwpt%5Cevent-timing%5Cmouseover-actual.txt

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

--

wpt-commits: 546dd707ac9440acfc40a326837a1e4032e0a2ff
wpt-pr: 23758
testing/web-platform/tests/event-timing/resources/event-timing-test-utils.js