Merge changes from topics "a11y_text_reading_18", "a11y_text_reading_19"
* changes: New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (20/n). New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (19/n). New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (18/n). New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (17/n).
This commit is contained in:
@@ -32,17 +32,17 @@ import org.robolectric.RobolectricTestRunner;
|
||||
import java.util.List;
|
||||
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class TextAndDisplayFragmentTest {
|
||||
public class ColorAndMotionFragmentTest {
|
||||
|
||||
private Context mContext = ApplicationProvider.getApplicationContext();
|
||||
|
||||
@Test
|
||||
public void getNonIndexableKeys_existInXmlLayout() {
|
||||
final List<String> niks = TextAndDisplayFragment.SEARCH_INDEX_DATA_PROVIDER
|
||||
final List<String> niks = ColorAndMotionFragment.SEARCH_INDEX_DATA_PROVIDER
|
||||
.getNonIndexableKeys(mContext);
|
||||
final List<String> keys =
|
||||
XmlTestUtils.getKeysFromPreferenceXml(mContext,
|
||||
R.xml.accessibility_text_and_display);
|
||||
R.xml.accessibility_color_and_motion);
|
||||
|
||||
assertThat(keys).containsAtLeastElementsIn(niks);
|
||||
}
|
Reference in New Issue
Block a user