Add diagnostic to deflake ChromeTabModalPresenterTest.testShow_UrlBarFocused
Test fails to receive callback about url focus change. Screenshots indicate that url bar didn't get focused. I suspect that OmniboxTestUtils.toggleUrlBarFocus logic to tap in the middle of the view doesn't correctly focus urlbar in some cases. If that's the case then directly calling urlBar.requestFocus() would work better for this test. This CL adds check to see if urlbar got focused. BUG=812066 R=twellington@chromium.org Change-Id: I9b120fa6cb2cf68b95a34f1e08c4143bf6e5787a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2136060 Commit-Queue: Pavel Yatsuk <pavely@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#756483}
Showing
Please register or sign in to comment