Loading tests/robotests/src/com/android/settings/fuelgauge/PowerUsageSummaryLegacyTest.java +0 −13 Original line number Diff line number Diff line Loading @@ -445,19 +445,6 @@ public class PowerUsageSummaryLegacyTest { 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 public void testSaveInstanceState_showAllAppsRestored() { Bundle bundle = new Bundle(); Loading Loading
tests/robotests/src/com/android/settings/fuelgauge/PowerUsageSummaryLegacyTest.java +0 −13 Original line number Diff line number Diff line Loading @@ -445,19 +445,6 @@ public class PowerUsageSummaryLegacyTest { 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 public void testSaveInstanceState_showAllAppsRestored() { Bundle bundle = new Bundle(); Loading