diff options
-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): |