summaryrefslogtreecommitdiff
path: root/library/test/robotest/src/com
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2017-04-03 12:39:34 -0700
committerMaurice Lam <yukl@google.com>2017-04-04 16:11:53 -0700
commite46be9bcf0dd195989b10768ceb57dd2c70095a9 (patch)
treecbca48a4b2986cf06cb8787ae873e11a87ba671a /library/test/robotest/src/com
parentf6b2d025f617ddadd5b6d18ff2c61f39a2085163 (diff)
downloadsetupwizard-e46be9bcf0dd195989b10768ceb57dd2c70095a9.tar.gz
Rename GLIF Pixel to GLIF v2
Since we are giving the option to OEMs to use the center alignment theme, rename it to something not Pixel specific. Test: Tests updated. ./gradlew connectedAndroidTest test Bug: 36857917 Change-Id: I09b0ebb743ccaa0ad6b215a12576ce1109a3fa31
Diffstat (limited to 'library/test/robotest/src/com')
-rw-r--r--library/test/robotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/test/robotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java b/library/test/robotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
index d518e08..00de17e 100644
--- a/library/test/robotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
+++ b/library/test/robotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
@@ -140,22 +140,22 @@ public class WizardManagerHelperTest {
}
@Test
- public void testGlifPixelIsDarkTheme() {
+ public void testGlifV2IsDarkTheme() {
final Intent intent = new Intent();
- intent.putExtra("theme", "glif_pixel");
- assertFalse("Theme glif_pixel should be dark theme",
+ intent.putExtra("theme", "glif_v2");
+ assertFalse("Theme glif_v2 should be dark theme",
WizardManagerHelper.isLightTheme(intent, false));
- assertFalse("Theme glif_pixel should be dark theme",
+ assertFalse("Theme glif_v2 should be dark theme",
WizardManagerHelper.isLightTheme(intent, true));
}
@Test
- public void testGlifPixelLightIsLightTheme() {
+ public void testGlifV2LightIsLightTheme() {
final Intent intent = new Intent();
- intent.putExtra("theme", "glif_pixel_light");
- assertTrue("Theme glif_pixel_light should be light theme",
+ intent.putExtra("theme", "glif_v2_light");
+ assertTrue("Theme glif_v2_light should be light theme",
WizardManagerHelper.isLightTheme(intent, false));
- assertTrue("Theme glif_pixel_light should be light theme",
+ assertTrue("Theme glif_v2_light should be light theme",
WizardManagerHelper.isLightTheme(intent, true));
}
@@ -195,15 +195,15 @@ public class WizardManagerHelperTest {
}
@Test
- public void testGetThemeResGlifPixelLight() {
- assertEquals(R.style.SuwThemeGlifPixel_Light,
- WizardManagerHelper.getThemeRes("glif_pixel_light", 0));
+ public void testGetThemeResGlifV2Light() {
+ assertEquals(R.style.SuwThemeGlifV2_Light,
+ WizardManagerHelper.getThemeRes("glif_v2_light", 0));
}
@Test
- public void testGetThemeResGlifPixel() {
- assertEquals(R.style.SuwThemeGlifPixel,
- WizardManagerHelper.getThemeRes("glif_pixel", 0));
+ public void testGetThemeResGlifV2() {
+ assertEquals(R.style.SuwThemeGlifV2,
+ WizardManagerHelper.getThemeRes("glif_v2", 0));
}
@Test