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

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

Issue 1257603003: Revert of Add ExecuteJavaScriptForTest and make all tests use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: chrome/renderer/autofill/password_autofill_agent_browsertest.cc
diff --git a/chrome/renderer/autofill/password_autofill_agent_browsertest.cc b/chrome/renderer/autofill/password_autofill_agent_browsertest.cc
index 6a0cc2eac83a6955ad64398c8c98449702bed5e6..cfa15cde9796fe617d9ffa1a788ce883c7419974 100644
--- a/chrome/renderer/autofill/password_autofill_agent_browsertest.cc
+++ b/chrome/renderer/autofill/password_autofill_agent_browsertest.cc
@@ -805,7 +805,7 @@
// Trigger the initial autocomplete.
SimulateOnFillPasswordForm(fill_data_);
- ExecuteJavaScriptForTests(kJavaScriptClick);
+ ExecuteJavaScript(kJavaScriptClick);
CheckTextFieldsDOMState(kAliceUsername, true, "", true);
}
@@ -1680,7 +1680,7 @@
"new_input.setAttribute('type', 'text');"
"new_input.setAttribute('id', 'other_field');"
"form.appendChild(new_input);";
- ExecuteJavaScriptForTests(add_field_to_form.c_str());
+ ExecuteJavaScript(add_field_to_form.c_str());
static_cast<content::RenderFrameObserver*>(password_autofill_agent_)
->WillSendSubmitEvent(username_element_.form());

Powered by Google App Engine
This is Rietveld 408576698