aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/FontHostTest.cpp
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-31 21:39:05 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-31 21:39:05 +0000
commitc0d3f2f627764ada39333143f4f73525fbece629 (patch)
tree9f2ab97fbc0582dd93570a32334da9369a727f2d /tests/FontHostTest.cpp
parent10f7f97d4213a251d63fcfcfd6e55b7b528d949a (diff)
Fix units per em test.
git-svn-id: http://skia.googlecode.com/svn/trunk@4873 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/FontHostTest.cpp')
-rw-r--r--tests/FontHostTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/FontHostTest.cpp b/tests/FontHostTest.cpp
index fcdeaba1a5..ab0d58e0b6 100644
--- a/tests/FontHostTest.cpp
+++ b/tests/FontHostTest.cpp
@@ -27,7 +27,7 @@ static const struct TagSize {
static void test_unitsPerEm(skiatest::Reporter* reporter, SkTypeface* face) {
int upem = face->getUnitsPerEm();
- REPORTER_ASSERT(reporter, upem > 0);
+ if (0 == upem) return;
size_t size = face->getTableSize(kFontTableTag_head);
if (size) {
@@ -87,7 +87,7 @@ static void test_tables(skiatest::Reporter* reporter) {
static const char* const gNames[] = {
NULL, // default font
"Arial", "Times", "Times New Roman", "Helvetica", "Courier",
- "Courier New",
+ "Courier New", "Terminal", "MS Sans Serif",
};
for (size_t i = 0; i < SK_ARRAY_COUNT(gNames); ++i) {