lacros: Add PopupBrowserTest.LongPressOnTabOpensNonEmptyMenu
Regression test for https://crbug.com/1157664. Verifies that opening a menu via long-press on a tab does not result in a popup window with empty bounds. In production this bug caused a Wayland protocol error and lacros crash. Adds a new test crosapi to inject touch events from the ash side. See comments in test for why we do it this way. I verified that this test fails appropriately when the fix for the original bug is reverted. The test does not reproduce the Wayland protocol error, because that error is in code that only runs when graphics overlay forwarding is enabled, which only happens on device. However, it's sufficient for the test to verify that the popup in lacros has non-empty bounds. Bug: 1157664 Test: lacros_chrome_browsertests Change-Id: Ia8aabaec1d6ec4bc72d1e77eda9a7f0efbe5f0c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643026 Commit-Queue: James Cook <jamescook@chromium.org> Commit-Queue: Erik Chen <erikchen@chromium.org> Auto-Submit: James Cook <jamescook@chromium.org> Reviewed-by:Erik Chen <erikchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#846264}
Showing
Please register or sign in to comment