Index: chrome/renderer/autofill/form_autocomplete_browsertest.cc |
diff --git a/chrome/renderer/autofill/form_autocomplete_browsertest.cc b/chrome/renderer/autofill/form_autocomplete_browsertest.cc |
index 1a88f8d572060f43ec9c727862d10ac0640ac148..52a3db553eb74e3d681b8608fb1acfe027b536e0 100644 |
--- a/chrome/renderer/autofill/form_autocomplete_browsertest.cc |
+++ b/chrome/renderer/autofill/form_autocomplete_browsertest.cc |
@@ -74,7 +74,7 @@ TEST_F(FormAutocompleteTest, NormalFormSubmit) { |
"<input name='lname' value='Deckard'/></form></html>"); |
// Submit the form. |
- ExecuteJavaScript("document.getElementById('myForm').submit();"); |
+ ExecuteJavaScriptForTests("document.getElementById('myForm').submit();"); |
ProcessPendingMessages(); |
VerifyReceivedRendererMessages(render_thread_.get(), |
@@ -91,7 +91,7 @@ TEST_F(FormAutocompleteTest, SubmitEventPrevented) { |
"</html>"); |
// Submit the form. |
- ExecuteJavaScript( |
+ ExecuteJavaScriptForTests( |
"var form = document.forms[0];" |
"form.onsubmit = function(event) { event.preventDefault(); };" |
"document.querySelector('input[type=submit]').click();"); |
@@ -111,7 +111,7 @@ TEST_F(FormAutocompleteTest, AutoCompleteOffFormSubmit) { |
"</form></html>"); |
// Submit the form. |
- ExecuteJavaScript("document.getElementById('myForm').submit();"); |
+ ExecuteJavaScriptForTests("document.getElementById('myForm').submit();"); |
ProcessPendingMessages(); |
VerifyReceivedRendererMessages(render_thread_.get(), |
@@ -127,7 +127,7 @@ TEST_F(FormAutocompleteTest, AutoCompleteOffInputSubmit) { |
"</form></html>"); |
// Submit the form. |
- ExecuteJavaScript("document.getElementById('myForm').submit();"); |
+ ExecuteJavaScriptForTests("document.getElementById('myForm').submit();"); |
ProcessPendingMessages(); |
VerifyReceivedRendererMessages(render_thread_.get(), |
@@ -148,13 +148,14 @@ TEST_F(FormAutocompleteTest, DynamicAutoCompleteOffFormSubmit) { |
EXPECT_TRUE(form.autoComplete()); |
// Dynamically mark the form as autocomplete off. |
- ExecuteJavaScript("document.getElementById('myForm')." |
- "setAttribute('autocomplete', 'off');"); |
+ ExecuteJavaScriptForTests( |
+ "document.getElementById('myForm')." |
+ "setAttribute('autocomplete', 'off');"); |
ProcessPendingMessages(); |
EXPECT_FALSE(form.autoComplete()); |
// Submit the form. |
- ExecuteJavaScript("document.getElementById('myForm').submit();"); |
+ ExecuteJavaScriptForTests("document.getElementById('myForm').submit();"); |
ProcessPendingMessages(); |
VerifyReceivedRendererMessages(render_thread_.get(), |