Move test for video size update to OverlayWindowViewsTest
With the aspect ratio maintained on all the platforms at the native widget level PictureInPictureWindowControllerBrowserTest.SurfaceIdChangeDoesNotMoveWindow was not realistic. It called SetBounds() on the window directly the way it never happens in real life due to the aspect ratio constraints. The video aspect ratio was 1.5 in this case, but the first SetBounds() call forced it to 1.0. Moving the test to OverlayWindowViewsTest makes it simpler and more stable without losing important coverage. Note that we don't need an actual video playing in the PiP window to verify the behavior we're interested in here. Bug: 1146047 Change-Id: If5ba686350d5823501b9ae05e486f8076771b3ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2611261Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Commit-Queue: Wojciech Dzierżanowski <wdzierzanowski@opera.com> Cr-Commit-Position: refs/heads/master@{#841963}
Showing
Please register or sign in to comment