commit | 1f0de4545d9926e1e50a62ccfdf448d867a7f7ea | [log] [tgz] |
---|---|---|
author | Friedrich Horschig <[email protected]> | Fri Mar 09 18:31:12 2018 |
committer | Commit Bot <[email protected]> | Fri Mar 09 18:31:12 2018 |
tree | 769c45c99fc322fba87530ba52aaa0138d7d583a | |
parent | bf17a41e44649eecf9dffbb715db571be6a77494 [diff] |
Add view waiting function as test util The added function |waitForView| repeatedly checks all views in a group until either a view was found that matches the given matcher. If this doesn't happen within a certain time or multiple views are matched, it fails the test. This simplifies UI tests by: - reducing flakiness, e.g. introduced due to animations - removing the need for sleeps or other timers. - reducing code duplication due to providing a central implementation Upcoming CLs that would benefit greatly from this: https://crrev.com/c/951588 and https://crrev.com/c/951764 Change-Id: Ibb6a0dcd2eb688467c4af1eaa82341f84e7e8bc6 Reviewed-on: https://chromium-review.googlesource.com/951688 Commit-Queue: Friedrich Horschig <[email protected]> Reviewed-by: Bernhard Bauer <[email protected]> Cr-Commit-Position: refs/heads/master@{#542172}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .