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

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

Issue 10024059: DataList UI (Chromium part) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits and tests Created 8 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 | « chrome/renderer/autofill/autofill_agent.cc ('k') | chrome/renderer/autofill/password_autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/autofill/autofill_browsertest.cc
diff --git a/chrome/renderer/autofill/autofill_browsertest.cc b/chrome/renderer/autofill/autofill_browsertest.cc
index 34dbb6946de3e586039ae2a04f01029dd3440c47..c2adabbb8c5b6e933d9a7cc827a7475416afbd8f 100644
--- a/chrome/renderer/autofill/autofill_browsertest.cc
+++ b/chrome/renderer/autofill/autofill_browsertest.cc
@@ -84,6 +84,7 @@ TEST_F(ChromeRenderViewTest, SendForms) {
document.getElementById("firstname").to<WebInputElement>();
// Make sure to query for Autofill suggestions before selecting one.
+ autofill_agent_->element_ = firstname;
autofill_agent_->QueryAutofillSuggestions(firstname, false);
// Accept suggestion that contains a label. Labeled items indicate Autofill
@@ -153,6 +154,7 @@ TEST_F(ChromeRenderViewTest, FillFormElement) {
middlename.setAutofilled(true);
// Make sure to query for Autofill suggestions before selecting one.
+ autofill_agent_->element_ = firstname;
autofill_agent_->QueryAutofillSuggestions(firstname, false);
// Accept a suggestion in a form that has been auto-filled. This triggers
« no previous file with comments | « chrome/renderer/autofill/autofill_agent.cc ('k') | chrome/renderer/autofill/password_autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698