test: add more tests for #2386

This commit is contained in:
Connor Tumbleson 2020-09-13 13:13:18 -04:00 committed by Connor Tumbleson
parent c501952c69
commit 231ce72483
5 changed files with 20 additions and 0 deletions

View File

@ -104,6 +104,10 @@ public class BuildAndDecodeTest extends BaseTest {
@Test
public void leadingDollarSignResourceNameTest() throws BrutException {
compareXmlFiles("res/drawable/$avd_hide_password__0.xml");
compareXmlFiles("res/drawable/$avd_show_password__0.xml");
compareXmlFiles("res/drawable/$avd_show_password__1.xml");
compareXmlFiles("res/drawable/$avd_show_password__2.xml");
compareXmlFiles("res/drawable/avd_show_password.xml");
}
@Test

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="24.0dip" android:width="24.0dip" android:viewportWidth="24.0" android:viewportHeight="24.0"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt">
</vector>

View File

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<objectAnimator android:interpolator="@android:interpolator/fast_out_linear_in" android:valueType="pathType" android:propertyName="pathData"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt" />

View File

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<objectAnimator android:interpolator="@android:interpolator/fast_out_linear_in" android:valueFrom="1" android:valueTo="0" android:propertyName="trimPathEnd"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt" />

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<animated-vector android:drawable="@drawable/$avd_show_password__0"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt">
<target android:name="eye_mask" android:animation="@drawable/$avd_show_password__1" />
<target android:name="strike_through" android:animation="@drawable/$avd_show_password__2" />
</animated-vector>