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

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

Issue 1123783002: Add ExecuteJavaScriptForTest and make all tests use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android 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/form_autofill_browsertest.cc
diff --git a/chrome/renderer/autofill/form_autofill_browsertest.cc b/chrome/renderer/autofill/form_autofill_browsertest.cc
index 88d8994a424f5ce991acf4459c8ecd983fcbbb7b..0d48dfb6e1cbddf832b13727722a26203701936c 100644
--- a/chrome/renderer/autofill/form_autofill_browsertest.cc
+++ b/chrome/renderer/autofill/form_autofill_browsertest.cc
@@ -2100,7 +2100,7 @@ TEST_F(FormAutofillTest, OnlyExtractNewForms) {
ASSERT_TRUE(forms.empty());
// Append to the current form will re-extract.
- ExecuteJavaScript(
+ ExecuteJavaScriptForTests(
"var newInput = document.createElement('input');"
"newInput.setAttribute('type', 'text');"
"newInput.setAttribute('id', 'telephone');"
@@ -2137,7 +2137,7 @@ TEST_F(FormAutofillTest, OnlyExtractNewForms) {
forms.clear();
// Completely new form will also be extracted.
- ExecuteJavaScript(
+ ExecuteJavaScriptForTests(
"var newForm=document.createElement('form');"
"newForm.id='new_testform';"
"newForm.action='http://google.com';"

Powered by Google App Engine
This is Rietveld 408576698