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