Add additional test cases

This commit is contained in:
Joe Farebrother
2024-01-29 22:43:28 +00:00
parent 3abd67064d
commit 460ffc89b2
3 changed files with 23 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ public final class R {
public static final int test10 = 10;
public static final int test11 = 11;
public static final int test12 = 12;
public static final int test13 = 13;
public static final int test14 = 14;
}
public static final class string {

View File

@@ -60,5 +60,18 @@ class Test extends Activity {
// GOOD: Visibility of parent set to invisible in XML
EditText test12 = findViewById(R.id.test12);
test12.setText(password);
// GOOD: Input type set to textPassword in XML
EditText test13 = findViewById(R.id.test13);
test13.setText(password);
test14 = findViewById(R.id.test14);
}
EditText test14;
void test2(String password) {
// GOOD: Input type set to textPassword in XML
test14.setText(password);
}
}

View File

@@ -50,4 +50,12 @@
android:id="@+id/test12"/>
</LinearLayout>
<EditText
android:id="@id/test13"
android:inputType="textPassword"/>
<EditText
android:id="@+id/test14"
android:inputType="textPassword"/>
</LinearLayout>