Merge "Allow below divider for all EntityHeader"
This commit is contained in:
committed by
Android (Google) Code Review
commit
afc09c5234
@@ -83,4 +83,11 @@ public class LayoutPreferenceTest {
|
||||
assertThat(mPreference.findViewById(R.id.button1).isEnabled()).isFalse();
|
||||
assertThat(mPreference.findViewById(R.id.button2).isEnabled()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void allowDividerBelow_shouldSaveCorrectDividerStatus() {
|
||||
mPreference.setAllowDividerBelow(true);
|
||||
|
||||
assertThat(mPreference.isAllowDividerBelow()).isTrue();
|
||||
}
|
||||
}
|
||||
|
@@ -96,11 +96,12 @@ public class EntityHeaderControllerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBuildView_withContext_shouldBuildPreference() {
|
||||
public void testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider() {
|
||||
mController = EntityHeaderController.newInstance(mActivity, mFragment, null);
|
||||
Preference preference = mController.done(mActivity, mShadowContext);
|
||||
|
||||
assertThat(preference instanceof LayoutPreference).isTrue();
|
||||
assertThat(((LayoutPreference)preference).isAllowDividerBelow()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user