diff options
author | Mike Reed <reed@google.com> | 2017-07-11 12:27:15 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-11 16:49:21 +0000 |
commit | f778eb2f51572d57a75e1a9cec25d5495f6662e1 (patch) | |
tree | a6ba208a93252e283441fc8f3a0e2f0d699ab6e1 /tests/TextBlobTest.cpp | |
parent | 4c70c75d0ab6b2924204c6d70e03c6672c4934a4 (diff) |
check for default typeface for new test
Bug: skia:
Change-Id: I5e52b3259acf73875640ec172d4ff8030975b611
Reviewed-on: https://skia-review.googlesource.com/22262
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tests/TextBlobTest.cpp')
-rw-r--r-- | tests/TextBlobTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/TextBlobTest.cpp b/tests/TextBlobTest.cpp index 238d7340b8..cec7028056 100644 --- a/tests/TextBlobTest.cpp +++ b/tests/TextBlobTest.cpp @@ -421,6 +421,12 @@ static sk_sp<SkImage> render(const SkTextBlob* blob) { * Then draw the new instance and assert it draws the same as the original. */ DEF_TEST(TextBlob_serialize, reporter) { + // test requires at least the default font + if (!SkTypeface::MakeDefault()) { + SkDebugf("TextBlob_serialize: missing default typeface\n"); + return; + } + SkTextBlobBuilder builder; sk_sp<SkTypeface> tf0; |