Merge "[Wi-Fi] [a11y] The "Advanced options" should be accessible by Voice Access and pronounced by talkback correctly."

This commit is contained in:
Goven Liu
2019-10-18 09:00:07 +00:00
committed by Android (Google) Code Review
4 changed files with 48 additions and 14 deletions

View File

@@ -557,4 +557,12 @@ public class WifiConfigControllerTest {
assertThat(firstChild).isEqualTo(hiddenSettingLayout);
}
@Test
public void getAdvancedOptionContentDescription_whenViewInitialed_shouldBeCorrect() {
final CheckBox advButton = mView.findViewById(R.id.wifi_advanced_togglebox);
assertThat(advButton.getContentDescription()).isEqualTo(
mContext.getString(R.string.wifi_advanced_toggle_description));
}
}