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

Unified Diff: third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMacTest.mm

Issue 2137483004: Enable "system-ui" generic font family (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drott nit Created 4 years, 2 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: third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMacTest.mm
diff --git a/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMacTest.mm b/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMacTest.mm
index 5b5e72ebc16f20acaadae49f17ae6470d4348246..66efa39aba2d142a408a5aaf1f926389f04c8dfc 100644
--- a/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMacTest.mm
+++ b/third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMacTest.mm
@@ -4,6 +4,8 @@
#import "platform/fonts/mac/FontFamilyMatcherMac.h"
+#include "platform/FontFamilyNames.h"
+
#include <AppKit/AppKit.h>
#include <gtest/gtest.h>
@@ -17,7 +19,8 @@ namespace blink {
void TestSystemFontContainsString(FontWeight desiredWeight,
NSString* substring) {
- NSFont* font = MatchNSFontFamily(@"BlinkMacSystemFont", 0, desiredWeight, 11);
+ NSFont* font =
+ MatchNSFontFamily(FontFamilyNames::system_ui, 0, desiredWeight, 11);
EXPECT_TRUE([font.description containsString:substring]);
}

Powered by Google App Engine
This is Rietveld 408576698