• pdr's avatar
    Give RenderViewTest a non-zero initial size for scrolling · 9c772586
    pdr authored
    This patch sets RenderViewTest's initial size to be 400x300 instead of
    0x0 so scrolling can work. This is in preparation for a future patch
    that asserts scroll layers have non-zero dimensions.
    
    The following test changes were required:
    1) RenderViewTest.MacTestCmdUp: removed a TODO hack that made the document
    non-empty for scrolling.
    2) PasswordGenerationAgentTest.FillTest previously used a gesture to focus
    an initial element but this gesture event failed because the window size
    was empty. This patch removes the gesture event so the test still has no
    initial focused element.
    3) RenderViewImplTest.NavigateSubframe no longer wraps "hello world".
    4) RenderFrameImplTest.FrameResize has been changed so it does change the
    viewport instead of leaving it with a 0,0 size, and a new test proves it.
    
    Bug: 723263
    Change-Id: Ie1d56dcbf09ddf6250011a8a59e6c07fafd60346
    Reviewed-on: https://chromium-review.googlesource.com/541982Reviewed-by: default avatarCharlie Reis <creis@chromium.org>
    Reviewed-by: default avatarVaclav Brozek <vabr@chromium.org>
    Reviewed-by: default avatarenne <enne@chromium.org>
    Commit-Queue: Philip Rogers <pdr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#481668}
    9c772586
render_view_browsertest.cc 102 KB