bookmark-apps: Fix focus test for popup and app windows
The browser window wasn't active by the time the test tried to focus it. This caused GetFocusedView() in IsViewFocused() to return nullptr and cause a seg fault. Fixes the test by ensuring the browser is brought to the front before trying to focus it. Also replaces ClickOnView with FocusView since ClickOnView could end up clicking the window in the back if the popup wasn't opened yet. Bug: 846848, 831483 Change-Id: I66b75dc264b6a82896d5ef20b1a44bc937d367e1 Reviewed-on: https://chromium-review.googlesource.com/1077109 Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by:Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#562757}
Showing
Please register or sign in to comment