Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: components/test/data/autofill/merge/tools/autofill_merge_common.py

Issue 1932193003: [Autofill] Modernize some AutofillMergeTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac import Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test/data/autofill/merge/output/validation.out ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test/data/autofill/merge/tools/autofill_merge_common.py
diff --git a/components/test/data/autofill/merge/tools/autofill_merge_common.py b/components/test/data/autofill/merge/tools/autofill_merge_common.py
index bbf5008b93c4fda9d69ebce87b63040fafddc81d..3bbd664262961c4d88547b164f80b79795212a4b 100644
--- a/components/test/data/autofill/merge/tools/autofill_merge_common.py
+++ b/components/test/data/autofill/merge/tools/autofill_merge_common.py
@@ -26,6 +26,7 @@ def SerializeProfiles(profiles):
if field_type == "ignored":
continue;
+ value = value.replace('\n', '\\n')
lines.append("%s: %s" % (field_type, value))
return '\n'.join(lines)
@@ -42,7 +43,8 @@ def ColumnNameToFieldType(column_name):
column_name = column_name.lower()
field_type = "unknown"
if column_name in ["guid", "label", "country", "date_modified", "origin",
- "language_code", "use_count", "use_date"]:
+ "language_code", "use_count", "use_date", "sorting_code",
+ "dependent_locality"]:
field_type = "ignored"
elif column_name == "first_name":
field_type = "NAME_FIRST"
@@ -70,10 +72,6 @@ def ColumnNameToFieldType(column_name):
field_type = "ADDRESS_HOME_ZIP"
elif column_name == "country_code":
field_type = "ADDRESS_HOME_COUNTRY"
- elif column_name == "sorting_code":
- field_type = "ADDRESS_HOME_SORTING_CODE"
- elif column_name == "dependent_locality":
- field_type = "ADDRESS_HOME_DEPENDENT_LOCALITY"
elif column_name == "phone":
field_type = "PHONE_HOME_WHOLE_NUMBER"
else:
« no previous file with comments | « components/test/data/autofill/merge/output/validation.out ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698