summaryrefslogtreecommitdiff
path: root/library/gingerbread/test
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2017-08-01 19:08:48 -0700
committerMaurice Lam <yukl@google.com>2017-08-01 19:14:37 -0700
commita23e50896f6ddb40f14551d7fc1af129ce501f3f (patch)
treec40c04b2597c60abe2c011d21c7a5eb08da384af /library/gingerbread/test
parent8863d97dff18d61c6ac43d91db3f249a10cc7a17 (diff)
downloadsetupwizard-a23e50896f6ddb40f14551d7fc1af129ce501f3f.tar.gz
Allow keyboard to focus on switch item
Test: ./gradlew connectedAndroidTest test Bug: 63115991 Change-Id: If03b3e469fd740631b5eabb6031f11fd2165bdb3
Diffstat (limited to 'library/gingerbread/test')
-rw-r--r--library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/ExpandableSwitchItemTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/ExpandableSwitchItemTest.java b/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/ExpandableSwitchItemTest.java
index 0ae0737..4fb3e28 100644
--- a/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/ExpandableSwitchItemTest.java
+++ b/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/ExpandableSwitchItemTest.java
@@ -71,6 +71,8 @@ public class ExpandableSwitchItemTest {
assertEquals("Should be collapsed initially", "TestSummary", mItem.getSummary());
assertEquals("Summary view should display collapsed summary",
"TestSummary", mSummaryView.getText());
+
+ assertFalse("Expandable switch item itself should not be focusable", view.isFocusable());
}
@Test