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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a lost comment and modify a render text unittest to not test black because of test env font con… Created 4 years, 7 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
Index: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
index 1915c658e4cfb87b3bc337c1849eb99f7999e49c..cd0a89cd6630ea83bd241d0a0787c14f7e5a35b8 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
@@ -115,8 +115,11 @@ class OmniboxViewMacTest : public CocoaProfileTest {
}
};
-TEST_F(OmniboxViewMacTest, GetFieldFont) {
- EXPECT_TRUE(OmniboxViewMac::GetFieldFont(gfx::Font::NORMAL));
+TEST_F(OmniboxViewMacTest, GetFonts) {
+ EXPECT_TRUE(OmniboxViewMac::GetNormalFieldFont());
+ EXPECT_TRUE(OmniboxViewMac::GetBoldFieldFont());
+ EXPECT_TRUE(OmniboxViewMac::GetLargeFont());
+ EXPECT_TRUE(OmniboxViewMac::GetSmallFont());
}
TEST_F(OmniboxViewMacTest, TabToAutocomplete) {
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm ('k') | chrome/browser/ui/extensions/icon_with_badge_image_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698