Display TOO_SHORT_WHEN_ALL_NUMERIC
To distinguish the requirement between all numeric and not all numeric when COMPLEXITY_HIGH. Fix: 227149118 Fix: 173167839 Test: manual & robolectric Change-Id: I1f682625d8e86963218dda43b626a9e55d169fb3
This commit is contained in:
@@ -56,7 +56,6 @@ import com.google.android.setupdesign.GlifLayout;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.Robolectric;
|
||||
@@ -74,13 +73,10 @@ import org.robolectric.shadows.ShadowDrawable;
|
||||
})
|
||||
public class ChooseLockPasswordTest {
|
||||
|
||||
private ShadowDevicePolicyManager mShadowDpm;
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
SettingsShadowResources.overrideResource(
|
||||
com.android.internal.R.string.config_headlineFontFamily, "");
|
||||
mShadowDpm = ShadowDevicePolicyManager.getShadow();
|
||||
}
|
||||
|
||||
@After
|
||||
@@ -191,7 +187,6 @@ public class ChooseLockPasswordTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void processAndValidatePasswordRequirements_minPasswordComplexityStricter_password() {
|
||||
PasswordPolicy policy = new PasswordPolicy();
|
||||
policy.quality = PASSWORD_QUALITY_SOMETHING;
|
||||
@@ -201,7 +196,6 @@ public class ChooseLockPasswordTest {
|
||||
/* minComplexity= */ PASSWORD_COMPLEXITY_MEDIUM,
|
||||
/* passwordType= */ PASSWORD_QUALITY_ALPHABETIC,
|
||||
/* userEnteredPassword= */ LockscreenCredential.createNone(),
|
||||
"Must contain at least 1 non-numerical character",
|
||||
"Must be at least 4 characters");
|
||||
}
|
||||
|
||||
@@ -323,7 +317,6 @@ public class ChooseLockPasswordTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void processAndValidatePasswordRequirements_requirementsUpdateAccordingToMinComplexityAndUserInput_empty() {
|
||||
PasswordPolicy policy = new PasswordPolicy();
|
||||
policy.quality = PASSWORD_QUALITY_UNSPECIFIED;
|
||||
@@ -334,11 +327,10 @@ public class ChooseLockPasswordTest {
|
||||
/* passwordType= */ PASSWORD_QUALITY_ALPHABETIC,
|
||||
/* userEnteredPassword= */ LockscreenCredential.createNone(),
|
||||
"Must be at least 6 characters",
|
||||
"Must contain at least 1 non-numerical character");
|
||||
"If using only numbers, must be at least 8 digits");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void processAndValidatePasswordRequirements_requirementsUpdateAccordingToMinComplexityAndUserInput_numeric() {
|
||||
PasswordPolicy policy = new PasswordPolicy();
|
||||
policy.quality = PASSWORD_QUALITY_UNSPECIFIED;
|
||||
@@ -349,7 +341,7 @@ public class ChooseLockPasswordTest {
|
||||
/* passwordType= */ PASSWORD_QUALITY_ALPHABETIC,
|
||||
/* userEnteredPassword= */ LockscreenCredential.createPassword("1"),
|
||||
"Must be at least 6 characters",
|
||||
"Must contain at least 1 non-numerical character");
|
||||
"If using only numbers, must be at least 8 digits");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user