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

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

Issue 1905143002: Autofill: Check for common angular js prefix when filling exp month. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix code Created 4 years, 8 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 09cc6f4b76cc16da3d0712f885ba18dc9f9dfe28..b488dd73629bb32d14a9e788e9f9531e2715bc9b 100644
--- a/components/autofill/core/browser/autofill_field_unittest.cc
+++ b/components/autofill/core/browser/autofill_field_unittest.cc
@@ -517,6 +517,12 @@ TEST_F(AutofillFieldTest, FillSelectControlWithExpirationMonth) {
// Values start at 00.
{{"00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11"},
NotNumericMonthsContentsNoPlaceholder()},
+ // The AngularJS framework adds a prefix to number types. Test that it is
+ // removed.
+ {{"number:1", "number:2", "number:3", "number:4", "number:5", "number:6",
+ "number:7", "number:8", "number:9", "number:10", "number:11",
+ "number:12"},
+ NotNumericMonthsContentsNoPlaceholder()},
// Values start at 0 and the first content is a placeholder.
{{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"},
NotNumericMonthsContentsWithPlaceholder()},
« 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