summaryrefslogtreecommitdiff
path: root/library/test/robotest
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2017-05-08 11:26:22 -0700
committerMaurice Lam <yukl@google.com>2017-05-08 22:31:53 +0000
commitaf3208e2c321905c04aea593a6ed3064908b37ef (patch)
tree7a7a14316af6d05b02ed449013467f38d3db6a99 /library/test/robotest
parentd3b18ba144783829ce8e0cd127c99de2ff5614cd (diff)
downloadsetupwizard-af3208e2c321905c04aea593a6ed3064908b37ef.tar.gz
Add footer stubs to blank template
Test: ./gradlew test Bug: 38043070 Change-Id: I91aae8667f1eef37f8c3cccb879871afefb90823
Diffstat (limited to 'library/test/robotest')
-rw-r--r--library/test/robotest/src/com/android/setupwizardlib/GlifLayoutTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/library/test/robotest/src/com/android/setupwizardlib/GlifLayoutTest.java b/library/test/robotest/src/com/android/setupwizardlib/GlifLayoutTest.java
index 8734f1d..d46409d 100644
--- a/library/test/robotest/src/com/android/setupwizardlib/GlifLayoutTest.java
+++ b/library/test/robotest/src/com/android/setupwizardlib/GlifLayoutTest.java
@@ -241,6 +241,21 @@ public class GlifLayoutTest {
}
@Test
+ public void testInflateFooterBlankTemplate() {
+ GlifLayout layout = new GlifLayout(mContext, R.layout.suw_glif_blank_template);
+
+ final View view = layout.inflateFooter(android.R.layout.simple_list_item_1);
+ assertEquals(android.R.id.text1, view.getId());
+ assertNotNull(layout.findViewById(android.R.id.text1));
+ }
+
+ @Config(qualifiers = "sw600dp")
+ @Test
+ public void testInflateFooterBlankTemplateTablet() {
+ testInflateFooterBlankTemplate();
+ }
+
+ @Test
public void testFooterXml() {
GlifLayout layout = new GlifLayout(
mContext,