• Alec Douglas's avatar
    [Android] Disable remote playback on test video · 0ec9f388
    Alec Douglas authored
    The testEnterExitFullscreenWithControlsButton test in
    VideoFullscreenOrientationLockTest attempts to click on the
    fullscreen button in the video controls panel via hardcoded
    offsets from the bounds of the video element.
    
    These offsets assume there are no other buttons placed to the
    right of the fullscreen button, but in some circumstances the
    cast button will appear and cause the test to fail when the
    fullscreen button is not where the test expects it to be.
    
    This commit ensures that the test video never shows the cast
    button in the controls panel.
    
    Note: The download button does not need to be disabled because
    the media src is detected as being a local file and this causes
    the download button to not be shown.
    
    BUG=None
    
    TEST=Every test class that uses video-player.html:
         FullscreenVideoTest, VideoFullscreenOrientationLockTest,
         VideoFullscreenOrientationLockChromeTest, FullscreenActivityTest
    
    Change-Id: Ia14b8e515f0ea6510bfa54fce0fa2f809d4a22b1
    Reviewed-on: https://chromium-review.googlesource.com/915017Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
    Commit-Queue: Mounir Lamouri <mlamouri@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#536774}
    0ec9f388
video-player.html 471 Bytes