aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-05 19:41:10 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-05 19:41:10 +0000
commit0b98f67b9060aee9e8e9ccbde2f58ee982fcec67 (patch)
tree35391aaaedc4049da1c12b45f06be1e238b64a1e /tests
parentcabf4b2f3664b98c1084fbb94a999af15ddfb52d (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/FontMgrTest.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/FontMgrTest.cpp b/tests/FontMgrTest.cpp
index afe618c201..6e59364684 100644
--- a/tests/FontMgrTest.cpp
+++ b/tests/FontMgrTest.cpp
@@ -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));