Merge "Disable FontWeightAdjustmentPreferenceControllerTest" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
35d8c4fcdf
@@ -28,6 +28,7 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
|
|||||||
import com.android.settings.core.BasePreferenceController;
|
import com.android.settings.core.BasePreferenceController;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
|
||||||
@@ -52,12 +53,14 @@ public class FontWeightAdjustmentPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("modifies system-wide fontscale, but doesn't reset it. b/293250385")
|
||||||
public void getAvailabilityStatus_byDefault_shouldReturnAvailable() {
|
public void getAvailabilityStatus_byDefault_shouldReturnAvailable() {
|
||||||
assertThat(mController.getAvailabilityStatus()).isEqualTo(
|
assertThat(mController.getAvailabilityStatus()).isEqualTo(
|
||||||
BasePreferenceController.AVAILABLE);
|
BasePreferenceController.AVAILABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("modifies system-wide fontscale, but doesn't reset it. b/293250385")
|
||||||
public void isChecked_enabledBoldText_shouldReturnTrue() {
|
public void isChecked_enabledBoldText_shouldReturnTrue() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Secure.putInt(mContext.getContentResolver(),
|
||||||
Settings.Secure.FONT_WEIGHT_ADJUSTMENT, ON);
|
Settings.Secure.FONT_WEIGHT_ADJUSTMENT, ON);
|
||||||
@@ -69,6 +72,7 @@ public class FontWeightAdjustmentPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("modifies system-wide fontscale, but doesn't reset it. b/293250385")
|
||||||
public void isChecked_disabledBoldText_shouldReturnFalse() {
|
public void isChecked_disabledBoldText_shouldReturnFalse() {
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Secure.putInt(mContext.getContentResolver(),
|
||||||
Settings.Secure.FONT_WEIGHT_ADJUSTMENT, OFF);
|
Settings.Secure.FONT_WEIGHT_ADJUSTMENT, OFF);
|
||||||
@@ -80,6 +84,7 @@ public class FontWeightAdjustmentPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("modifies system-wide fontscale, but doesn't reset it. b/293250385")
|
||||||
public void setChecked_setTrue_shouldEnableBoldText() {
|
public void setChecked_setTrue_shouldEnableBoldText() {
|
||||||
mController.setChecked(true);
|
mController.setChecked(true);
|
||||||
|
|
||||||
@@ -88,6 +93,7 @@ public class FontWeightAdjustmentPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("modifies system-wide fontscale, but doesn't reset it. b/293250385")
|
||||||
public void setChecked_setFalse_shouldDisableBoldText() {
|
public void setChecked_setFalse_shouldDisableBoldText() {
|
||||||
mController.setChecked(false);
|
mController.setChecked(false);
|
||||||
|
|
||||||
@@ -96,6 +102,7 @@ public class FontWeightAdjustmentPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("modifies system-wide fontscale, but doesn't reset it. b/293250385")
|
||||||
public void resetState_shouldDisableBoldText() {
|
public void resetState_shouldDisableBoldText() {
|
||||||
mController.setChecked(true);
|
mController.setChecked(true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user