Simplify and add tests for the progress bar
This change refactors much of the progress bar code in an effort to simplify the logic that has grown out of control. The significant changes are as follows: - The smooth progress animator runs until progress is finished instead of ending when progress reaches the current complete percentage. - 'finish(...)' is blocked until the progress animators are complete unless it is called with 'fadeOut' set to false (see todo in code). - 'updateVisibleProgress' has been removed as its function had become unclear. - More complete tests to exercise the different functionality. BUG= Change-Id: I95ff4c5918bccaac5bc1ef025254caea13a862c2 Reviewed-on: https://chromium-review.googlesource.com/769772 Commit-Queue: Matthew Jones <mdjones@chromium.org> Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Reviewed-by:
Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/master@{#522161}
Showing
This diff is collapsed.
Please register or sign in to comment