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

Unified Diff: chrome/renderer/autofill/form_autofill_browsertest.cc

Issue 1018553002: Autofill: Fix broken DCHECK from r320637. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | components/autofill/content/renderer/form_autofill_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/autofill/form_autofill_browsertest.cc
diff --git a/chrome/renderer/autofill/form_autofill_browsertest.cc b/chrome/renderer/autofill/form_autofill_browsertest.cc
index 0032cf071b3b3c9644b07bc30bae8504d2ae6244..32faeb097552e006ed6ea969ed4e5d3a298dab8e 100644
--- a/chrome/renderer/autofill/form_autofill_browsertest.cc
+++ b/chrome/renderer/autofill/form_autofill_browsertest.cc
@@ -3126,6 +3126,10 @@ TEST_F(FormAutofillTest, LabelsInferredFromTableRow) {
names.push_back(ASCIIToUTF16("phone3"));
values.push_back(ASCIIToUTF16("7890"));
+ labels.push_back(ASCIIToUTF16("Credit Card Number"));
+ names.push_back(ASCIIToUTF16("ccnumber"));
+ values.push_back(ASCIIToUTF16("4444555544445555"));
+
ExpectLabels(
"<FORM name='TestForm' action='http://cnn.com' method='post'>"
"<TABLE>"
@@ -3172,6 +3176,16 @@ TEST_F(FormAutofillTest, LabelsInferredFromTableRow) {
" </TD>"
" </TR>"
" <TR>"
+ " <TH>"
+ " Credit Card Number"
+ " </TH>"
+ " </TR>"
+ " <TR>"
+ " <TD>"
+ " <INPUT type='text' name='ccnumber' value='4444555544445555'/>"
+ " </TD>"
+ " </TR>"
+ " <TR>"
" <TD>"
" <INPUT type='submit' name='reply-send' value='Send'/>"
" </TD>"
« no previous file with comments | « no previous file | components/autofill/content/renderer/form_autofill_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698