Merge "Prototyping : Demo Image on color setting" into sc-qpr1-dev am: 7efaff8d0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15531055 Change-Id: If4c7ffd19e06965e34f5185e63b22d58d3ca08d8
This commit is contained in:
@@ -39,6 +39,7 @@ import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@@ -232,4 +233,15 @@ public class ColorModePreferenceFragmentTest {
|
||||
|
||||
verify(mFragment).setColorMode(ColorDisplayManager.COLOR_MODE_AUTOMATIC);
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
public void checkViewPagerTotalCount() throws Throwable {
|
||||
final ArrayList<Integer> viewPagerResList = mFragment.getViewPagerResource();
|
||||
|
||||
assertThat(viewPagerResList.size()).isEqualTo(3);
|
||||
for (int idx = 0; idx < viewPagerResList.size(); idx++) {
|
||||
assertThat(viewPagerResList.get(idx) > 0).isTrue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user