• Tommy C. Li's avatar
    Omnibox UI Experiments: Steady State Elisions - add test for mouse click · 5fa9e7de
    Tommy C. Li authored
    When Steady State Elisions is on, when the user clicks the mouse once,
    it should focus and select all in the text field.
    
    When the user places the caret inside the text by clicking on the text
    a second time, it should unelide on mouseup only.
    
    This adds a test for that. It also places the View inside a Widget to
    make the focus behave correctly.
    
    It also adds a fake clock to the Steady State Elisions test, so we
    can control the click being not interpreted as a double-click.
    
    Bug: 797354
    Change-Id: If72235dd88b6918f9071fffea800723a24c555f7
    Reviewed-on: https://chromium-review.googlesource.com/1007492
    Commit-Queue: Tommy Li <tommycli@chromium.org>
    Reviewed-by: default avatarJustin Donnelly <jdonnelly@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#550449}
    5fa9e7de
omnibox_view_views.h 12.4 KB