Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: ios/chrome/browser/ui/util/manual_text_framer_unittest.mm

Issue 2935723002: Fix ManualTextFramerTest.OriginRTLTest on iOS 11 (Closed)
Patch Set: Just bump the size Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/util/manual_text_framer_unittest.mm
diff --git a/ios/chrome/browser/ui/util/manual_text_framer_unittest.mm b/ios/chrome/browser/ui/util/manual_text_framer_unittest.mm
index 2b4e0e27d06e969da7f4b5d8aa92d76935974789..4da9712cc020db24e5c536f382acf941f6628e5f 100644
--- a/ios/chrome/browser/ui/util/manual_text_framer_unittest.mm
+++ b/ios/chrome/browser/ui/util/manual_text_framer_unittest.mm
@@ -198,7 +198,9 @@ TEST_F(ManualTextFramerTest, OriginRTLTest) {
attributes()[NSParagraphStyleAttributeName] = CreateParagraphStyle(
20.0, NSTextAlignmentNatural, NSLineBreakByWordWrapping);
ApplyAttributesForRange(text_range());
- CGRect bounds = CGRectMake(0, 0, 100.0, 60.0);
+ // The bounds width is chosen so that the RTL string above can be completely
+ // laid out into three lines.
+ CGRect bounds = CGRectMake(0, 0, 115.0, 60.0);
FrameTextInBounds(bounds);
CheckForLineCountAndFramedRange(3, text_range());
for (FramedLine* line in text_frame().lines) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698