Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[m115][omnibox][cr23] Fix cursor position test for SS height.
m115 merge. https://screenshot.googleplex.com/Bz5jWYp5HkhADMB crrev.com/c/4581107 launched omnibox SS height, increasing the omnibox height from 28px to 34px. chromeOS had some rounding issues, where it actually used a 29px omnibox instead of a 28px omnibox. It also uses a 17px cursor height instead of 16px like linux. There's a test `AccessibilityHighlightsBrowserTest.CaretHighlightOmnibox` that checks the cursor is vertically centered in the omnibox. Due to the rounding issues on chromeOS, it ended up being 1px off after increasing the omnibox height to 34px. So that CL also updated the test to expect the cursor to be centered at 1px less than the center of the omnibox. But this broke the test on linux, since linux didn't have the rounding issue that chromeOS did. So this CL updates the test to expect the cursor to be EITHER centered OR 1px off from center. (cherry picked from commit a7d95bf) Bug: 1416351, 1453711, 1368852 Change-Id: I78249edfd48ddafbce28c46aed2abcbe65461ac8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4606073 Commit-Queue: manuk hovanesian <manukh@chromium.org> Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> Reviewed-by: Katie Dektar <katie@chromium.org> Auto-Submit: manuk hovanesian <manukh@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1156426} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4609204 Cr-Commit-Position: refs/branch-heads/5790@{#713} Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
- Loading branch information