aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/TypefaceTest.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-11-12 11:41:09 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-12 17:03:36 +0000
commit24e4cc7087bc29d55c89ba77654b68d22388f11d (patch)
tree832b0800c472c052de9e2cd38e5162cf176e11aa /tests/TypefaceTest.cpp
parentc207da8d40ccb5edc385e9a91712ea4f92517abe (diff)
disable Android-specific SkTypeface test
Seems like this is testing the Android SkFontMgr via SkTypeface. I would like to replace it with that test directly. Change-Id: Iea7a16a3afcda4f89f367f5da4090660329f95d1 Reviewed-on: https://skia-review.googlesource.com/70460 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests/TypefaceTest.cpp')
-rw-r--r--tests/TypefaceTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/TypefaceTest.cpp b/tests/TypefaceTest.cpp
index c8e96c5a7c..4ab8c5eec6 100644
--- a/tests/TypefaceTest.cpp
+++ b/tests/TypefaceTest.cpp
@@ -185,7 +185,8 @@ DEF_TEST(Typeface, reporter) {
REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), nullptr));
REPORTER_ASSERT(reporter, SkTypeface::Equal(t2.get(), nullptr));
-#ifdef SK_BUILD_FOR_ANDROID
+ // Disabled temporarily. TODO(mtklein): test Android SkFontMgr directly?
+#if 0 && defined(SK_BUILD_FOR_ANDROID)
sk_sp<SkTypeface> t3(SkTypeface::MakeFromName("non-existent-font", SkFontStyle()));
REPORTER_ASSERT(reporter, nullptr == t3);
#endif