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

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, 7 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..08b8fe5d94e7f9fb957285d0eba9bc57ab59986b 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,18 @@ FakeDataMaker.addressEntry = function() {
};
/**
+ * Creates a new empty credit card entry for testing.
+ * @return {!chrome.autofillPrivate.CreditCardEntry}
+ */
+FakeDataMaker.emptyCreditCardEntry = function() {
+ var now = new Date();
+ var ret = {};
+ ret.expirationMonth = now.getMonth() + 1;
michaelpg 2016/05/27 17:57:08 strings?
hcarmona 2016/05/31 21:14:06 Done.
+ ret.expirationYear = now.getFullYear();
+ return ret;
+};
+
+/**
* Creates a new random credit card entry for testing.
* @return {!chrome.autofillPrivate.CreditCardEntry}
*/
@@ -86,7 +98,7 @@ FakeDataMaker.creditCardEntry = function() {
/**
* Creates a new random GUID for testing.
- * @return {!string}
+ * @return {string}
* @private
*/
FakeDataMaker.makeGuid_ = function() {
@@ -96,9 +108,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