• tapted's avatar
    Introduce ui_test_utils::FocusView and de-flake OmniboxViewTest.BeginningShownAfterBlur · 98d6f1e4
    tapted authored
    Currently interactive UI tests typically call `ClickOnView` to transfer
    focus. On Mac, the behaviour of a click changes when an application
    loses focus, and re-activating the application in a test is not
    reliable. The test application shouldn't be losing focus in
    interactive_ui_tests, but tracing suggests this is ocurring anyway.
    
    This CL introduces ui_test_utils::FocusView which is a more robust way
    to transfer focus in a test.
    
    OmniboxViewTest.BeginningShownAfterBlur is changed to use
    ui_test_utils::FocusView and re-enabled.
    
    BUG=406012
    
    Review URL: https://codereview.chromium.org/534993002
    
    Cr-Commit-Position: refs/heads/master@{#293516}
    98d6f1e4
omnibox_view_browsertest.cc 70.4 KB