| Index: third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp b/third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp
|
| index 5eeaa67825c3a4ce757ea3384c856d2bd03f4be7..d23e3506b849f2939214303ad33dc9798d510742 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp
|
| @@ -35,4 +35,11 @@ TEST(FontCache, getLastResortFallbackFont) {
|
| EXPECT_TRUE(fontData);
|
| }
|
|
|
| +TEST(FontCache, firstAvailableOrFirst) {
|
| + EXPECT_TRUE(FontCache::firstAvailableOrFirst("").isEmpty());
|
| + EXPECT_TRUE(FontCache::firstAvailableOrFirst(String()).isEmpty());
|
| +
|
| + EXPECT_EQ("Arial", FontCache::firstAvailableOrFirst("not exist, Arial"));
|
| +}
|
| +
|
| } // namespace blink
|
|
|