Merge "Fix broken test" into sc-dev am: f8641a4d86
am: 6ee940be8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14809883 Change-Id: I297b0cf052903f189788a08e60348b593bccddc4
This commit is contained in:
@@ -73,7 +73,7 @@ public class ApplicationViewHolderTest {
|
||||
public void setTitle_titleIsNotEmptyAndContentIsNotEmpty_shouldSetTitleAndContentDescription() {
|
||||
mHolder.setTitle("title", "content");
|
||||
|
||||
assertThat(mHolder.mAppName).isEqualTo("title");
|
||||
assertThat(mHolder.mAppName.getText()).isEqualTo("title");
|
||||
assertThat(mHolder.mAppName.getContentDescription()).isEqualTo("content");
|
||||
}
|
||||
|
||||
@@ -81,8 +81,8 @@ public class ApplicationViewHolderTest {
|
||||
public void setTitle_titleIsNotEmptyButContentIsEmpty_shouldSetTitle() {
|
||||
mHolder.setTitle("title", "");
|
||||
|
||||
assertThat(mHolder.mAppName).isEqualTo("title");
|
||||
assertThat(mHolder.mAppName.getContentDescription()).isEqualTo("title");
|
||||
assertThat(mHolder.mAppName.getText()).isEqualTo("title");
|
||||
assertThat(mHolder.mAppName.getContentDescription()).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user