Merge "Fix the broken test on com.android.settingslib.utils.PowerUtilTest" into tm-dev am: 992514d9d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17046315 Change-Id: Iea3ea0ae206e1d1f7ffe782df5dcad47cc5ecbaf
This commit is contained in:
@@ -122,9 +122,9 @@ public class PowerUtilTest {
|
||||
true /* basedOnUsage */);
|
||||
|
||||
// additional battery percentage in this string
|
||||
assertThat(info).isEqualTo("Phone may shut down soon (10%)");
|
||||
assertThat(info.contains("may shut down soon (10%)")).isTrue();
|
||||
// shortened string should not have percentage
|
||||
assertThat(info2).isEqualTo("Phone may shut down soon");
|
||||
assertThat(info2.contains("may shut down soon")).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user