Fix test breakage in testNickNameV21().

Internal issue number: 2079082
This commit is contained in:
Daisuke Miyakawa
2009-10-29 12:24:26 +09:00
parent d95a02c2a6
commit f5633bc7e2
2 changed files with 2 additions and 2 deletions

View File

@ -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 = "";

View File

@ -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.