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

Unified Diff: chrome/test/data/webui/settings/passwords_and_autofill_fake_data.js

Issue 2109233002: [MD Settings] Add Edit/Create Address Dialog to MD Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 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
Index: chrome/test/data/webui/settings/passwords_and_autofill_fake_data.js
diff --git a/chrome/test/data/webui/settings/passwords_and_autofill_fake_data.js b/chrome/test/data/webui/settings/passwords_and_autofill_fake_data.js
index e9f83d36927bd2c592403b2de1daa71110fc2b18..08b926a007f10a27a8e6baf551144c2f861f0cbd 100644
--- a/chrome/test/data/webui/settings/passwords_and_autofill_fake_data.js
+++ b/chrome/test/data/webui/settings/passwords_and_autofill_fake_data.js
@@ -44,17 +44,25 @@ FakeDataMaker.exceptionEntry = function(url) {
};
/**
+ * Creates a new fake address entry for testing.
+ * @return {!chrome.autofillPrivate.AddressEntry}
+ */
+FakeDataMaker.emptyAddressEntry = function() {
+ return {};
+}
+
+/**
* Creates a fake address entry for testing.
* @return {!chrome.autofillPrivate.AddressEntry}
*/
FakeDataMaker.addressEntry = function() {
var ret = {};
ret.guid = FakeDataMaker.makeGuid_();
- ret.fullNames = ['John', 'Doe'];
+ ret.fullNames = ['John Doe'];
ret.companyName = 'Google';
ret.addressLines = FakeDataMaker.patternMaker_('xxxx Main St', 10);
- ret.addressLevel1 = "CA";
- ret.addressLevel2 = "Venice";
+ ret.addressLevel1 = 'CA';
+ ret.addressLevel2 = 'Venice';
ret.postalCode = FakeDataMaker.patternMaker_('xxxxx', 10);
ret.countryCode = 'US';
ret.phoneNumbers = [FakeDataMaker.patternMaker_('(xxx) xxx-xxxx', 10)];

Powered by Google App Engine
This is Rietveld 408576698