commit | e93a8545b2194d98246eb07c793141435a53b70f | [log] [tgz] |
---|---|---|
author | Yao, Yuxing <yaoyx@google.com> | Fri Feb 09 10:48:14 2018 -0800 |
committer | Yao, Yuxing <yaoyx@google.com> | Fri Feb 09 10:50:51 2018 -0800 |
tree | e46d7f229a2ef05518e9061d7bf208aa11f2100c | |
parent | dfe1503e4e2c5dd91322e770b31ac355e2c56cea [diff] |
Only run DVM test on automotive device. I couldn't reproduce the failure locally so honestly this is a shot in the dark. Alternatively we could scroll to position 0 before accessing the view, but I can't verify how well it works, so taking the safer approach. Change-Id: I7ad348371001d23f350b065c42666b8e4bbd34b3 Fixes: 73005407 Test: ./gradlew :car:connectedCheck
diff --git a/car/src/androidTest/java/androidx/car/widget/DividerVisibilityManagerTest.java b/car/src/androidTest/java/androidx/car/widget/DividerVisibilityManagerTest.java index 84f6464..fde098b 100644 --- a/car/src/androidTest/java/androidx/car/widget/DividerVisibilityManagerTest.java +++ b/car/src/androidTest/java/androidx/car/widget/DividerVisibilityManagerTest.java
@@ -171,6 +171,10 @@ @Test public void testSettingItemDividersHidden() throws Throwable { + if (!isAutoDevice()) { + return; + } + TextListItem item0 = new TextListItem(mActivity); item0.setHideDivider(true);