add small test for #1157

This commit is contained in:
Connor Tumbleson 2017-12-13 14:41:36 -05:00
parent b9ddfc8508
commit d46ba2fb82
3 changed files with 12 additions and 0 deletions

View File

@ -218,6 +218,11 @@ public class BuildAndDecodeTest {
compareXmlFiles("res/layout/issue1274.xml"); compareXmlFiles("res/layout/issue1274.xml");
} }
@Test
public void xmlCustomAttrsNotAndroidTest() throws BrutException {
compareXmlFiles("res/layout/issue1157.xml");
}
@Test @Test
public void qualifiersTest() throws BrutException { public void qualifiersTest() throws BrutException {
compareValuesFiles("values-mcc004-mnc4-en-rUS-ldrtl-sw100dp-w200dp-h300dp" compareValuesFiles("values-mcc004-mnc4-en-rUS-ldrtl-sw100dp-w200dp-h300dp"

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="test" app:min_value="0.2" app:max_value="5.0" app:default_value="1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/brut.apktool.testapp" />

View File

@ -17,4 +17,7 @@
<enum name="TEST_ZERO" value="0" /> <enum name="TEST_ZERO" value="0" />
<enum name="TEST_ONE" value="1" /> <enum name="TEST_ONE" value="1" />
</attr> </attr>
<attr name="min_value" format="float" />
<attr name="max_value" format="float" />
<attr name="default_value" format="float" />
</resources> </resources>