mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
Added resource qualifiers test.
This commit is contained in:
parent
102597ef4c
commit
130856ccb8
@ -114,6 +114,12 @@ public class BuildAndDecodeTest {
|
|||||||
compareXmlFiles("res/xml/references.xml");
|
compareXmlFiles("res/xml/references.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void qualifiersTest() throws BrutException {
|
||||||
|
compareValuesFiles("values-mcc004-mnc4-en-rUS-xlarge-long-land-desk-" +
|
||||||
|
"night-xhdpi-finger-keyssoft-12key-navhidden-dpad/strings.xml");
|
||||||
|
}
|
||||||
|
|
||||||
private void compareValuesFiles(String path) throws BrutException {
|
private void compareValuesFiles(String path) throws BrutException {
|
||||||
compareXmlFiles("res/" + path,
|
compareXmlFiles("res/" + path,
|
||||||
new ElementNameAndAttributeQualifier("name"));
|
new ElementNameAndAttributeQualifier("name"));
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="test1" />
|
||||||
|
</resources>
|
Loading…
Reference in New Issue
Block a user