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) { |