Skip to content
Snippets Groups Projects
Commit e25b7353 authored by akwizgran's avatar akwizgran
Browse files

Only check the beginnings of font names, since the exact names vary by

platform.
parent af6c9a97
No related branches found
No related tags found
No related merge requests found
......@@ -21,12 +21,13 @@ public class FontManagerTest extends TestCase {
Font font = fontManager.getFontForLanguage("en"); // English
assertEquals(12, font.getSize());
// The exact font names vary by platform, so just check how they start
font = fontManager.getFontForLanguage("bo"); // Tibetan
assertEquals("Tibetan Machine Uni", font.getFamily());
assertTrue(font.getFamily().startsWith("Tibetan"));
assertEquals(14, font.getSize());
font = fontManager.getFontForLanguage("my"); // Burmese
assertEquals("Padauk", font.getFamily());
assertTrue(font.getFamily().startsWith("Padauk"));
assertEquals(14, font.getSize());
}
......@@ -63,7 +64,7 @@ public class FontManagerTest extends TestCase {
fontManager.setUiFontForLanguage("bo");
font = fontManager.getUiFont();
assertEquals("Tibetan Machine Uni", font.getFamily());
assertTrue(font.getFamily().startsWith("Tibetan"));
assertEquals(14, font.getSize());
fontManager.setUiFontForLanguage("en");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment