Give RenderViewTest a non-zero initial size for scrolling
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:Charlie Reis <creis@chromium.org> Reviewed-by:
Vaclav Brozek <vabr@chromium.org> Reviewed-by:
enne <enne@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#481668}
Showing
Please register or sign in to comment