Remove accessibility duplicates in settings search
Bug: 33701673 Test: make RunSettingsRoboTests Change-Id: Iae179b558065d728c14eb76f136d398081577779
This commit is contained in:
@@ -93,10 +93,7 @@ public class DataIntegrityTest {
|
||||
for (Integer xmlResId : xmlList) {
|
||||
// Get all keys to be indexed
|
||||
final List<String> prefKeys = XmlTestUtils.getKeysFromPreferenceXml(context, xmlResId);
|
||||
|
||||
pageKeys.addAll(prefKeys);
|
||||
// Remove grandfathered keys.
|
||||
pageKeys.removeAll(grandfatheredKeys);
|
||||
// Find all already-existing keys.
|
||||
pageKeys.retainAll(masterKeys);
|
||||
// Keep list of offending duplicate keys.
|
||||
@@ -105,7 +102,7 @@ public class DataIntegrityTest {
|
||||
masterKeys.addAll(prefKeys);
|
||||
pageKeys.clear();
|
||||
}
|
||||
assertThat(duplicateKeys).isEmpty();
|
||||
assertThat(duplicateKeys).containsExactlyElementsIn(grandfatheredKeys);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user