End tests via video.rAF
The video-frame-size-change.html is flaky because it sometimes finishes before the pixels have rendered on screen. There are two reasons for this: 1) We only wait on the second video to finish seeking to end the test. 2) Seeking doesn't guarantee that the frames will be painted on screen. This CL fixes the issue by waiting for both videos to render on screen, by using video.rAF calls to end the test as soon as both videos have painted their frames. Bug: 993671 Change-Id: I236777bf3fa83fc57e9e4e80560703965602d40c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2025581 Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Auto-Submit: Thomas Guilbert <tguilbert@chromium.org> Cr-Commit-Position: refs/heads/master@{#736965}
Showing
Please register or sign in to comment