Fix tests for time format in settings

Because now we use different time format across the settings app.
We need to update all the tests.

Bug: 76113036
Test: RunSettingsRoboTests
Change-Id: Id4f7d55775adfdeb1aa0ae234f35d515ced4f450
This commit is contained in:
Lei Yu
2018-03-22 15:01:20 -07:00
parent 4e25277f60
commit 04d13ee378
6 changed files with 15 additions and 15 deletions

View File

@@ -133,7 +133,7 @@ public class DataUsageSummaryPreferenceTest {
bindViewHolder();
assertThat(mCarrierInfo.getText().toString())
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + "d ago");
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + " days ago");
}
@Test
@@ -148,7 +148,7 @@ public class DataUsageSummaryPreferenceTest {
bindViewHolder();
assertThat(mCarrierInfo.getText().toString())
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + "h ago");
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + " hr ago");
}
@Test
@@ -163,7 +163,7 @@ public class DataUsageSummaryPreferenceTest {
bindViewHolder();
assertThat(mCarrierInfo.getText().toString())
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + "m ago");
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + " min ago");
}
@Test
@@ -199,7 +199,7 @@ public class DataUsageSummaryPreferenceTest {
bindViewHolder();
assertThat(mCarrierInfo.getText().toString())
.isEqualTo("Updated 2m ago");
.isEqualTo("Updated 2 min ago");
}
@Test