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

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: 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
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..ae389d69b0088c67367cdc08d82335aa8367bc12 100644
--- a/components/autofill/core/browser/autofill_field_unittest.cc
+++ b/components/autofill/core/browser/autofill_field_unittest.cc
@@ -538,6 +538,12 @@ TEST_F(AutofillFieldTest, FillSelectControlWithExpirationMonth) {
NotNumericMonthsContentsWithPlaceholder()},
// Values start at 1 after a negative number.
{{"-1", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"},
+ NotNumericMonthsContentsWithPlaceholder()},
+ // 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"},
NotNumericMonthsContentsWithPlaceholder()}};
for (TestCase test_case : test_cases) {

Powered by Google App Engine
This is Rietveld 408576698