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

Unified Diff: components/autofill/core/browser/autofill_field_unittest.cc

Issue 1626853005: [Autofill] Trim expiration month select values before converting them to months. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more comments Created 4 years, 11 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/autofill/core/browser/autofill_field.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_field_unittest.cc
diff --git a/components/autofill/core/browser/autofill_field_unittest.cc b/components/autofill/core/browser/autofill_field_unittest.cc
index 9ef7d7f6744579d6c4cebb3f4cfc33045dfadd1f..6f3b0d40afee46d560cfce19115f76a9e71ec0c9 100644
--- a/components/autofill/core/browser/autofill_field_unittest.cc
+++ b/components/autofill/core/browser/autofill_field_unittest.cc
@@ -470,6 +470,9 @@ TEST_F(AutofillFieldTest, FillSelectControlWithExpirationMonth) {
// Values start at 1.
{{"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"},
NotNumericMonthsContentsNoPlaceholder()},
+ // Values start at 1 but single digits are whitespace padded!
+ {{" 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "10", "11", "12"},
+ NotNumericMonthsContentsNoPlaceholder()},
// Values start at 0.
{{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"},
NotNumericMonthsContentsNoPlaceholder()},
« no previous file with comments | « components/autofill/core/browser/autofill_field.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698