Fix FontMgrTest to allow for unnamed fonts.

Motivation: we are testing on a system without fonts and are falling
back on SkTypeface_Empty.

R=bungeman@google.com

Author: halcanary@google.com

Review URL: https://codereview.chromium.org/187933002

git-svn-id: http://skia.googlecode.com/svn/trunk@13675 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
commit-bot@chromium.org 2014-03-05 19:41:10 +00:00
parent cabf4b2f36
commit 0b98f67b90

View File

@ -47,7 +47,6 @@ static void test_fontiter(skiatest::Reporter* reporter, bool verbose) {
for (int i = 0; i < count; ++i) {
SkString fname;
fm->getFamilyName(i, &fname);
REPORTER_ASSERT(reporter, fname.size() > 0);
SkAutoTUnref<SkFontStyleSet> fnset(fm->matchFamily(fname.c_str()));
SkAutoTUnref<SkFontStyleSet> set(fm->createStyleSet(i));