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

Unified Diff: ui/views/controls/label_unittest.cc

Issue 1082653002: MacViews: Fix LabelTest.ObscuredSurrogatePair (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150401-MacViews-views_unittests
Patch Set: Created 5 years, 8 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: ui/views/controls/label_unittest.cc
diff --git a/ui/views/controls/label_unittest.cc b/ui/views/controls/label_unittest.cc
index b73083ed7c11567a0a82870c78f33de278cb18b0..32fabd783a5968587a403bdd5259a2890813286f 100644
--- a/ui/views/controls/label_unittest.cc
+++ b/ui/views/controls/label_unittest.cc
@@ -177,9 +177,8 @@ TEST_F(LabelTest, ObscuredSurrogatePair) {
Label label;
base::string16 test_text = base::UTF8ToUTF16("\xF0\x9D\x84\x9E");
label.SetText(test_text);
- label.SizeToPreferredSize();
-
label.SetObscured(true);
+ label.SizeToPreferredSize();
EXPECT_EQ(ASCIIToUTF16("*"), label.GetDisplayTextForTesting());
EXPECT_EQ(test_text, label.text());
}
« 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