Merge "Remove duplicate test"
This commit is contained in:
committed by
Android (Google) Code Review
commit
49620e85c6
@@ -445,19 +445,6 @@ public class PowerUsageSummaryLegacyTest {
|
|||||||
eq(Bundle.EMPTY), any());
|
eq(Bundle.EMPTY), any());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("b/73892008")
|
|
||||||
@Test
|
|
||||||
public void testShowBothEstimates_summariesAreBothModified() {
|
|
||||||
doReturn(new TextView(mRealContext)).when(mBatteryLayoutPref).findViewById(R.id.summary2);
|
|
||||||
doReturn(new TextView(mRealContext)).when(mBatteryLayoutPref).findViewById(R.id.summary1);
|
|
||||||
mFragment.onLongClick(new View(mRealContext));
|
|
||||||
TextView summary1 = mFragment.mBatteryLayoutPref.findViewById(R.id.summary1);
|
|
||||||
TextView summary2 = mFragment.mBatteryLayoutPref.findViewById(R.id.summary2);
|
|
||||||
Robolectric.flushBackgroundThreadScheduler();
|
|
||||||
assertThat(summary2.getText().toString()).contains(NEW_ML_EST_SUFFIX);
|
|
||||||
assertThat(summary1.getText().toString()).contains(OLD_EST_SUFFIX);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSaveInstanceState_showAllAppsRestored() {
|
public void testSaveInstanceState_showAllAppsRestored() {
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
|
Reference in New Issue
Block a user