diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2015-01-08 12:48:18 -0800 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-16 12:16:25 -0700 |
commit | 8c98e08586f15efbabca2a9fc8e501677a4d8e89 (patch) | |
tree | 077adfad7a629fb34e9997c139662fd07e26b067 | |
parent | 9db32d0cea4b76c4a75e4a186416540fb60b4843 (diff) |
Add more of common tests to run_web_tests.py.
-rwxr-xr-x | scripts/run_web_tests.py | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/scripts/run_web_tests.py b/scripts/run_web_tests.py index 9309e0b..ab04b02 100755 --- a/scripts/run_web_tests.py +++ b/scripts/run_web_tests.py @@ -11,23 +11,8 @@ FONTS = common_tests.load_fonts( ['out/web/*.ttf'], expected_count=18) -class TestCharacterCoverage(common_tests.TestCharacterCoverage): +class TestItalicAngle(common_tests.TestItalicAngle): loaded_fonts = FONTS - test_inclusion_of_sound_recording_copyright = None - - -class TestVerticalMetrics(common_tests.TestVerticalMetrics): - loaded_fonts = FONTS - - def test_os2_metrics(self): - """Tests OS/2 vertical metrics to be equal to the old values.""" - for font in self.fonts: - os2_table = font['OS/2'] - self.assertEqual(os2_table.sTypoDescender, -512) - self.assertEqual(os2_table.sTypoAscender, 1536) - self.assertEqual(os2_table.sTypoLineGap, 102) - self.assertEqual(os2_table.usWinDescent, 512) - self.assertEqual(os2_table.usWinAscent, 1946) class TestMetaInfo(common_tests.TestMetaInfo): @@ -56,6 +41,33 @@ class TestNames(common_tests.TestNames): self.assertEqual(records[6], expected_name) +class TestDigitWidths(common_tests.TestDigitWidths): + loaded_fonts = FONTS + + +class TestCharacterCoverage(common_tests.TestCharacterCoverage): + loaded_fonts = FONTS + test_inclusion_of_sound_recording_copyright = None + + +class TestVerticalMetrics(common_tests.TestVerticalMetrics): + loaded_fonts = FONTS + + def test_os2_metrics(self): + """Tests OS/2 vertical metrics to be equal to the old values.""" + for font in self.fonts: + os2_table = font['OS/2'] + self.assertEqual(os2_table.sTypoDescender, -512) + self.assertEqual(os2_table.sTypoAscender, 1536) + self.assertEqual(os2_table.sTypoLineGap, 102) + self.assertEqual(os2_table.usWinDescent, 512) + self.assertEqual(os2_table.usWinAscent, 1946) + + +class TestLigatures(common_tests.TestLigatures): + loaded_fonts = FONTS + + class TestHints(unittest.TestCase): """Tests hints.""" |