• Wojciech Dzierżanowski's avatar
    Ensure video started playing in test · e6584c33
    Wojciech Dzierżanowski authored
    Several Picture-in-Picture browser tests require video playback to have
    started, but they didn't really enforce it considering that the `play()`
    method of the media element is asynchronous. In particular, a test
    verifying the visibility of a control bound to a MediaSession action
    might never see the control: The control is visible when the video is
    actually playing and also it's hidden automatically 2.5 s after the
    start of mouse hover. If playback doesn't start during those 2.5 seconds
    (which is plausible if the test machines are under heavy load) the
    hiding timeout will elapse first.
    
    Bug: 985303
    Change-Id: I7f9d62e8496cb5419445dd27c94fde91d541a6ea
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2635156Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
    Commit-Queue: Wojciech Dzierżanowski <wdzierzanowski@opera.com>
    Cr-Commit-Position: refs/heads/master@{#845409}
    e6584c33
window-size.html 4.05 KB