Fix battery robo test
Fixes: 130896701 Test: RunSettingsRoboTests Change-Id: Iffb7874250335db81181b23f96fe7b50a2dd0062
This commit is contained in:
@@ -82,7 +82,7 @@ public class BatteryMeterView extends ImageView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getBatteryLevel() {
|
public int getBatteryLevel() {
|
||||||
return mDrawable.getLevel();
|
return mDrawable.getBatteryLevel();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCharging(boolean charging) {
|
public void setCharging(boolean charging) {
|
||||||
|
@@ -50,7 +50,6 @@ import com.android.settingslib.widget.LayoutPreference;
|
|||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.mockito.Mock;
|
import org.mockito.Mock;
|
||||||
@@ -136,7 +135,6 @@ public class BatteryHeaderPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore("b/130896701")
|
|
||||||
public void displayPreference_displayBatteryLevel() {
|
public void displayPreference_displayBatteryLevel() {
|
||||||
mController.displayPreference(mPreferenceScreen);
|
mController.displayPreference(mPreferenceScreen);
|
||||||
|
|
||||||
@@ -190,7 +188,6 @@ public class BatteryHeaderPreferenceControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore("b/130896701")
|
|
||||||
public void quickUpdateHeaderPreference_onlyUpdateBatteryLevelAndChargingState() {
|
public void quickUpdateHeaderPreference_onlyUpdateBatteryLevelAndChargingState() {
|
||||||
mSummary.setText(BATTERY_STATUS);
|
mSummary.setText(BATTERY_STATUS);
|
||||||
mSummary2.setText(BATTERY_STATUS);
|
mSummary2.setText(BATTERY_STATUS);
|
||||||
|
Reference in New Issue
Block a user