add font test

This commit is contained in:
Connor Tumbleson 2017-08-24 22:49:43 -04:00
parent fa966d2d66
commit 67b2325136
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75
3 changed files with 16 additions and 0 deletions

View File

@ -303,6 +303,15 @@ public class BuildAndDecodeTest {
compareValuesFiles("values-vrheadset-v26/strings.xml");
}
@Test
public void fontTest() throws BrutException, IOException {
File fontXml = new File((sTestNewDir + "/res/font"), "lobster.xml");
File fontFile = new File((sTestNewDir + "/res/font"), "lobster_regular.otf");
assertTrue(fontXml.isFile());
assertTrue(fontFile.isFile());
}
@Test
public void drawableNoDpiTest() throws BrutException, IOException {
compareResFolder("drawable-nodpi");

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android">
<font
android:fontStyle="normal"
android:fontWeight="400"
android:font="@font/lobster_regular" />
</font-family>