mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
add failing unit-test for reference in attribute
This commit is contained in:
parent
22305ccb7c
commit
52dc52c2d3
@ -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"
|
||||
|
@ -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"
|
||||
/>
|
@ -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>
|
Loading…
Reference in New Issue
Block a user