Chromium Code Reviews
DescriptionMacViews: Fix LabelTest.ObscuredSurrogatePair
The test sets text to an G-clef, sizes the text field to fit, then
obscures the G-clef with "*".
On Mac, a G-clef has a width of 4.36 pixels and a "*" has a width of
6.27 pixels, so when the text field becomes a "*" it is too narrow and
needs to be elided. The text field is also too small to hold an ellipsis
(13 pixels) so it just shows nothing. The test expects a "*".
Fix the test by resizing after obscuring the G-clef rather than before.
BUG=378134
TEST=views_unittests
Committed: https://crrev.com/85da3ef950c8280dab2d29a322b9131b673f3ada
Cr-Commit-Position: refs/heads/master@{#324949}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|
|||||||||||||||||||