Fix ContextualSuggestionsTest#testPeekWithPageScrollPercentage on O
The maximum scroll offset varies among different screen height. It's not very reliable to use the hard-coded html body height for testing. This patch simulates scroll based on the maximum scroll offset from the RenderCoordinates instead. Bug: 871305 Change-Id: I983036b8d72d60c4077eea1cbc39b2177e6aebf4 Reviewed-on: https://chromium-review.googlesource.com/1164416 Commit-Queue: Becky Zhou <huayinz@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#581266}
Showing
Please register or sign in to comment