summaryrefslogtreecommitdiff
path: root/scripts/common_tests.py
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2015-01-08 11:25:51 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:25 -0700
commitcfa5c8e378eb1913c447236aab739febe2c6cc5d (patch)
treed7bdbe61b8fe77b5aeddbdea2b4fb10884de1d8b /scripts/common_tests.py
parent3f22b6f3b65aac67988e3be214792aa56daa3794 (diff)
More moving web-specific tests and touchups to common.
Diffstat (limited to 'scripts/common_tests.py')
-rw-r--r--scripts/common_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/common_tests.py b/scripts/common_tests.py
index 41880c8..14d761b 100644
--- a/scripts/common_tests.py
+++ b/scripts/common_tests.py
@@ -108,6 +108,7 @@ class TestNames(FontTest):
def setUp(self):
_, self.fonts = self.loaded_fonts
+ self.condensed_family_name = self.family_name + ' Condensed'
self.names = []
for font in self.fonts:
self.names.append(font_data.get_name_records(font))
@@ -119,6 +120,14 @@ class TestNames(FontTest):
records[0],
'Copyright 2011 Google Inc. All Rights Reserved.')
+ def test_family_name(self):
+ """Tests the family name."""
+ for records in self.names:
+ self.assertIn(records[1],
+ [self.family_name, self.condensed_family_name])
+ if 16 in records:
+ self.assertEqual(records[16], records[1])
+
class TestDigitWidths(FontTest):
"""Tests the width of digits."""