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

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

Issue 2015463003: Add dialog to edit and save credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 5d4de53de7c9d0f246fd238f3d0e65a10ad39f3b..e9f83d36927bd2c592403b2de1daa71110fc2b18 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
@@ -67,6 +67,19 @@ FakeDataMaker.addressEntry = function() {
};
/**
+ * Creates a new empty credit card entry for testing.
+ * @return {!chrome.autofillPrivate.CreditCardEntry}
+ */
+FakeDataMaker.emptyCreditCardEntry = function() {
+ var now = new Date();
+ var expirationMonth = now.getMonth() + 1;
+ var ret = {};
+ ret.expirationMonth = expirationMonth.toString()
+ ret.expirationYear = now.getFullYear().toString();
+ return ret;
+};
+
+/**
* Creates a new random credit card entry for testing.
* @return {!chrome.autofillPrivate.CreditCardEntry}
*/
@@ -86,7 +99,7 @@ FakeDataMaker.creditCardEntry = function() {
/**
* Creates a new random GUID for testing.
- * @return {!string}
+ * @return {string}
* @private
*/
FakeDataMaker.makeGuid_ = function() {
@@ -96,9 +109,9 @@ FakeDataMaker.makeGuid_ = function() {
/**
* Replaces any 'x' in a string with a random number of the base.
- * @param {!string} pattern The pattern that should be used as an input.
- * @param {!number} base The number base. ie: 16 for hex or 10 for decimal.
- * @return {!string}
+ * @param {string} pattern The pattern that should be used as an input.
+ * @param {number} base The number base. ie: 16 for hex or 10 for decimal.
+ * @return {string}
* @private
*/
FakeDataMaker.patternMaker_ = function(pattern, base) {

Powered by Google App Engine
This is Rietveld 408576698