Remove test for battery percent paint being equal to bolt paint
BatteryMeterView used to draw both the charging bolt and the powersave '+' symbol as the same color. However the plus sign is drawn as colorError now, so the test isn't needed anymore. Test: runtest -x packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/BatteryMeterDrawableBaseTest.java Change-Id: I014fbc65d96bed727e880ac492913c2e5d50f405 Fixes: 112205156
This commit is contained in:
@@ -102,17 +102,4 @@ public class BatteryMeterDrawableBaseTest {
|
||||
private boolean isRectZero(Rect r) {
|
||||
return r.left == 0 && r.top == 0 && r.right == 0 && r.bottom == 0;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPlusPaint_isEqualToBoltPaint() {
|
||||
// Before setting color
|
||||
assertTrue(mBatteryDrawable.mPlusPaint.hasEqualAttributes(mBatteryDrawable.mBoltPaint));
|
||||
|
||||
final int fakeFillColor = 123;
|
||||
final int fakeBackgrundColor = 456;
|
||||
|
||||
// After
|
||||
mBatteryDrawable.setColors(fakeFillColor, fakeBackgrundColor);
|
||||
assertTrue(mBatteryDrawable.mPlusPaint.hasEqualAttributes(mBatteryDrawable.mBoltPaint));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user