From c692382c41aab6c88437ee69ead13b0890271073 Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Tue, 29 Sep 2015 18:06:11 -0700 Subject: Use common digit width test for android --- scripts/run_android_tests.py | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'scripts') 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): -- cgit v1.2.3