Change the message for sequential characters in a password
Change the error message for sequential characters in the password when the password quality requirement is NUMERIC_COMPLEX or higher. The error message stays the same in case of PIN. Screenshots from local testing: - http://screen/po62FX6aGKoRCU7 - http://screen/BXU6mcJEHMoU4TR - http://screen/BhCzSDdY83WCQeH Bug: 299044500 Test: Tested locally, see screenshots Flag: EXEMPT simple change to an error message Change-Id: I2e96fef6b5f9a11013fbaa8e231bddc7fa45867f
This commit is contained in:
@@ -71,7 +71,6 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.Robolectric;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.Shadows;
|
||||
import org.robolectric.annotation.Config;
|
||||
import org.robolectric.shadows.ShadowDrawable;
|
||||
|
||||
@@ -314,7 +313,7 @@ public class ChooseLockPasswordTest {
|
||||
/* minComplexity= */ PASSWORD_COMPLEXITY_NONE,
|
||||
/* passwordType= */ PASSWORD_QUALITY_ALPHABETIC,
|
||||
/* userEnteredPassword= */ LockscreenCredential.createPassword("12345678"),
|
||||
"Ascending, descending, or repeated sequence of digits isn't allowed");
|
||||
"Ascending, descending, or repeated sequence of characters isn't allowed");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -356,7 +355,7 @@ public class ChooseLockPasswordTest {
|
||||
/* minComplexity= */ PASSWORD_COMPLEXITY_LOW,
|
||||
/* passwordType= */ PASSWORD_QUALITY_ALPHABETIC,
|
||||
/* userEnteredPassword= */ LockscreenCredential.createPassword("12345678"),
|
||||
"Ascending, descending, or repeated sequence of digits isn't allowed");
|
||||
"Ascending, descending, or repeated sequence of characters isn't allowed");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user