add failing unit-test for reference in attribute

This commit is contained in:
Connor Tumbleson 2015-09-12 15:07:32 -05:00
parent 22305ccb7c
commit 52dc52c2d3
3 changed files with 17 additions and 0 deletions

View File

@ -170,6 +170,11 @@ public class BuildAndDecodeTest {
compareXmlFiles("res/xml/references.xml");
}
@Test
public void xmlReferenceAttributeTest() throws BrutException {
compareXmlFiles("res/layout/issue1040.xml");
}
@Test
public void qualifiersTest() throws BrutException {
compareValuesFiles("values-mcc004-mnc04-en-rUS-ldrtl-sw100dp-w200dp-h300dp"

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="@integer/reference_test"
/>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="test_integer1">-1</integer>
<integer name="test_integer2">0</integer>
<integer name="test_integer3">1</integer>
<integer name="reference_test">0</integer>
</resources>