| 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 cfa15cde9796fe617d9ffa1a788ce883c7419974..6a0cc2eac83a6955ad64398c8c98449702bed5e6 100644
|
| --- a/chrome/renderer/autofill/password_autofill_agent_browsertest.cc
|
| +++ b/chrome/renderer/autofill/password_autofill_agent_browsertest.cc
|
| @@ -805,7 +805,7 @@ TEST_F(PasswordAutofillAgentTest, NoDOMActivationTest) {
|
| // Trigger the initial autocomplete.
|
| SimulateOnFillPasswordForm(fill_data_);
|
|
|
| - ExecuteJavaScript(kJavaScriptClick);
|
| + ExecuteJavaScriptForTests(kJavaScriptClick);
|
| CheckTextFieldsDOMState(kAliceUsername, true, "", true);
|
| }
|
|
|
| @@ -1680,7 +1680,7 @@ TEST_F(PasswordAutofillAgentTest, FindingFieldsWithAutofillPredictions) {
|
| "new_input.setAttribute('type', 'text');"
|
| "new_input.setAttribute('id', 'other_field');"
|
| "form.appendChild(new_input);";
|
| - ExecuteJavaScript(add_field_to_form.c_str());
|
| + ExecuteJavaScriptForTests(add_field_to_form.c_str());
|
|
|
| static_cast<content::RenderFrameObserver*>(password_autofill_agent_)
|
| ->WillSendSubmitEvent(username_element_.form());
|
|
|