diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-09-29 18:06:11 -0700 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-09-29 18:06:11 -0700 |
commit | c692382c41aab6c88437ee69ead13b0890271073 (patch) | |
tree | 5d0ac7e82fb6b442f4ef8a46d84e7b3bea18ecd0 /scripts | |
parent | 64a7750a219e522276a689c1771de1572bfc0372 (diff) |
Use common digit width test for android
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/run_android_tests.py | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/scripts/run_android_tests.py b/scripts/run_android_tests.py index 2ca9231..6c69f30 100755 --- a/scripts/run_android_tests.py +++ b/scripts/run_android_tests.py @@ -43,22 +43,9 @@ class TestVerticalMetrics(common_tests.TestVerticalMetrics): expected_head_yMax = 2163 - -class TestDigitWidths(unittest.TestCase): - """Tests the width of digits.""" - - def setUp(self): - _, self.fonts = load_fonts() - self.digits = [ - 'zero', 'one', 'two', 'three', 'four', - 'five', 'six', 'seven', 'eight', 'nine'] - - def test_digit_widths(self): - """Tests all decimal digits to make sure they have the same width.""" - for font in self.fonts: - hmtx_table = font['hmtx'] - widths = [hmtx_table[digit][0] for digit in self.digits] - self.assertEqual(len(set(widths)), 1) +class TestDigitWidths(common_tests.TestDigitWidths): + loaded_fonts = FONTS + test_superscript_digits = None class TestCharacterCoverage(common_tests.TestCharacterCoverage): |