New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (19/n).

- Rename the strings related to "text and display" to "color and motion" to avoid misunderstanding.

Bug: 211503117
Test: manual test
Change-Id: Icdca5ee03fb95a8531406a0f6ab07799a9dfb17c
This commit is contained in:
Peter_Liang
2022-02-14 10:42:08 +08:00
parent 18eb37fb7d
commit 19631ec1b1
7 changed files with 18 additions and 18 deletions

View File

@@ -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);
}