Merge "Fix talkback doesn't speak subtext info" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
10e732bd59
@@ -69,6 +69,22 @@ public class ApplicationViewHolderTest {
|
||||
assertThat(mHolder.mSummary.getText()).isEqualTo(mContext.getText(R.string.disabled));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setTitle_titleIsNotEmptyAndContentIsNotEmpty_shouldSetTitleAndContentDescription() {
|
||||
mHolder.setTitle("title", "content");
|
||||
|
||||
assertThat(mHolder.mAppName).isEqualTo("title");
|
||||
assertThat(mHolder.mAppName.getContentDescription()).isEqualTo("content");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setTitle_titleIsNotEmptyButContentIsEmpty_shouldSetTitle() {
|
||||
mHolder.setTitle("title", "");
|
||||
|
||||
assertThat(mHolder.mAppName).isEqualTo("title");
|
||||
assertThat(mHolder.mAppName.getContentDescription()).isEqualTo("title");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateSize() {
|
||||
final String invalidStr = "invalid";
|
||||
|
Reference in New Issue
Block a user