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

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

Issue 9837059: Cleanup for views::Label: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « ui/views/controls/label.cc ('k') | ui/views/controls/message_box_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label_unittest.cc
===================================================================
--- ui/views/controls/label_unittest.cc (revision 128075)
+++ ui/views/controls/label_unittest.cc (working copy)
@@ -43,7 +43,7 @@
Label label;
string16 test_text(ASCIIToUTF16("A random string."));
label.SetText(test_text);
- EXPECT_EQ(test_text, label.GetText());
+ EXPECT_EQ(test_text, label.text());
}
TEST(LabelTest, UrlProperty) {
@@ -51,8 +51,7 @@
std::string my_url("http://www.orkut.com/some/Random/path");
GURL url(my_url);
label.SetURL(url);
- EXPECT_EQ(my_url, label.GetURL().spec());
- EXPECT_EQ(UTF8ToUTF16(my_url), label.GetText());
+ EXPECT_EQ(UTF8ToUTF16(my_url), label.text());
}
TEST(LabelTest, ColorProperty) {
« no previous file with comments | « ui/views/controls/label.cc ('k') | ui/views/controls/message_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698