Merge "Change "X over" text color to ColorError" into pi-dev am: 22bf690fdd

am: b2a8860b3c

Change-Id: Ibc163d39ea4b6708699ba53334d080c8258fde63
This commit is contained in:
Jan Nordqvist
2018-04-05 16:31:40 -07:00
committed by android-build-merger
3 changed files with 9 additions and 2 deletions

View File

@@ -378,6 +378,8 @@ public class DataUsageSummaryPreferenceTest {
bindViewHolder();
assertThat(mDataUsed.getText().toString()).isEqualTo("1.00 MB used");
assertThat(mDataRemaining.getText().toString()).isEqualTo("9.00 MB left");
final int colorId = Utils.getColorAttr(mContext, android.R.attr.colorAccent);
assertThat(mDataRemaining.getCurrentTextColor()).isEqualTo(colorId);
}
@Test
@@ -389,6 +391,8 @@ public class DataUsageSummaryPreferenceTest {
bindViewHolder();
assertThat(mDataUsed.getText().toString()).isEqualTo("11.00 MB used");
assertThat(mDataRemaining.getText().toString()).isEqualTo("1.00 MB over");
final int colorId = Utils.getColorAttr(mContext, android.R.attr.colorError);
assertThat(mDataRemaining.getCurrentTextColor()).isEqualTo(colorId);
}
@Test