summaryrefslogtreecommitdiff
path: root/scripts/run_android_tests.py
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2014-08-15 16:51:31 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:21 -0700
commit19abad362e541fc1ee063f4442c9fb588b9ff1f3 (patch)
treea08f11c5e64e3a611c120919745dbf502a0ea626 /scripts/run_android_tests.py
parent7237600eb825bafbd37b7b751540ad8ac3110a4a (diff)
Remove unassigned characters from the fonts' cmap.
Diffstat (limited to 'scripts/run_android_tests.py')
-rw-r--r--scripts/run_android_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/run_android_tests.py b/scripts/run_android_tests.py
index 3898753..3eab071 100644
--- a/scripts/run_android_tests.py
+++ b/scripts/run_android_tests.py
@@ -64,6 +64,15 @@ class TestCharacterCoverage(unittest.TestCase):
self.assertNotIn(0x2191, charset) # UPWARDS ARROW
self.assertNotIn(0x2193, charset) # DOWNWARDS ARROW
+ def test_lack_of_unassigned_chars(self):
+ """Tests that unassigned characters are not in the fonts."""
+ for font in self.fonts:
+ charset = coverage.character_set(font)
+ self.assertNotIn(0x2072, charset)
+ self.assertNotIn(0x2073, charset)
+ self.assertNotIn(0x208F, charset)
+
+
def test_inclusion_of_sound_recording_copyright(self):
"""Tests that sound recording copyright symbol is in the fonts."""
for font in self.fonts: