Fix flakiness of pausing-an-animation test.
The test had a strict inequality test for current time based on the fact that the ready promise is typically received in the next frame after the compositor has paused the animation. However, the test is validating that the updated playback rate does not take effect too early, which would result in a big change to current time. Changing the assert from > to >= still validates what the test was designed for and accommodates some variability in the delivery time of the ready promise. The spec does not state that the time must advance before the ready promise is delivered, just that the animation client must acknowledge that it is ready. Bug: 997149 Change-Id: I1a0a5d889d6f8270560c9d4ec8e9de94b429e855 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1773718Reviewed-by:Stephen McGruer <smcgruer@chromium.org> Commit-Queue: Kevin Ellis <kevers@chromium.org> Cr-Commit-Position: refs/heads/master@{#691138}
Showing
Please register or sign in to comment