Fix test breakage in testNickNameV21().
Internal issue number: 2079082
This commit is contained in:
@ -1490,7 +1490,7 @@ public class VCardComposer {
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < Constants.MAX_DATA_COLUMN; i++) {
|
||||
for (int i = 1; i <= Constants.MAX_DATA_COLUMN; i++) {
|
||||
String value = contentValues.getAsString("data" + i);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
|
@ -1279,7 +1279,7 @@ public class VCardExporterTests extends AndroidTestCase {
|
||||
|
||||
VCardVerificationHandler handler = new VCardVerificationHandler(this, V21);
|
||||
handler.addNewVerifierWithEmptyName()
|
||||
.addNodeWithOrder("X-ANDROID-CUSTOM", Nickname.CONTENT_ITEM_TYPE + ";Nicky");
|
||||
.addNodeWithOrder("X-ANDROID-CUSTOM", Nickname.CONTENT_ITEM_TYPE + ";Nicky;;;;;;;;;;;;;;");
|
||||
|
||||
// TODO: also test import part.
|
||||
|
||||
|
Reference in New Issue
Block a user