Chromium Code Reviews
DescriptionDeflake permission dialog + persistence toggle tests on Android.
These tests would flake through timing out while waiting for a switch to
be toggled. The toggle was triggered through a synthetic touch event
sent to the switch view. Observing the flake would reveal that the
switch stayed in its original position after the touch event was sent,
so the hypothesis is that the touch event was sent prior to the view
being ready to respond to it.
This CL deflakes the tests by replacing the touch event for triggering
the toggle with an explicit toggle() call on the SwitchCompat object.
This no longer simulates the user input, but the tests should now
reliably pass.
This CL also corrects the arguments used for
MediaTest#testCombinedPersistenceOffDialog to match those of
MediaTest#testMicrophonePersistenceOffDialog.
BUG=662294, 663677, 668700
Committed: https://crrev.com/c6f2275d2d7d1db5d194f46b4d08e37ebb2769b5
Cr-Commit-Position: refs/heads/master@{#435074}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Refactor out a method, call toggle() on UI thread #
Messages
Total messages: 19 (12 generated)
|
|||||||||||||||||||||||||||||||||||||