Bug 1642816 [wpt PR 23925] - [EventTiming] Allow spurious inputs when looseCount...
commitb532af464d42060b1756d69eb22ee28dc146f4b5
authorNicolás Peña Moreno <npm@chromium.org>
Wed, 10 Jun 2020 11:29:49 +0000 (10 11:29 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 12 Jun 2020 09:18:46 +0000 (12 09:18 +0000)
treeb44abb30ea0269ddfebb642e4cbba24e8e0bbad4
parent662d7ce1adc0f36ffa4b7884b692253fb7f2ecfc
Bug 1642816 [wpt PR 23925] - [EventTiming] Allow spurious inputs when looseCount is true, a=testonly

Automatic update from web-platform-tests
[EventTiming] Allow spurious inputs when looseCount is true

This CL is a tentative fix for some flaky tests. An assert_equals to 0
is sometimes failing, presumably because the test itself may cause some
inputs to occur. Hence, we only check that eventCounts is 0 when the
|looseCount| variable is set to false.

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

--
Give two event-timing tests long timeout

--

wpt-commits: 8062b6cec1efca70adb0c1ef16c4e53936328993f9b7b656af0513874a16ccb68c6a1b2957ea086f
wpt-pr: 23925
testing/web-platform/tests/event-timing/mousedown.html
testing/web-platform/tests/event-timing/pointerdown.html
testing/web-platform/tests/event-timing/resources/event-timing-test-utils.js