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

Unified Diff: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc

Issue 1123783002: Add ExecuteJavaScriptForTest and make all tests use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
index 8dd18352d69bbbd59fbf14b612a549c1440b753e..42dbcfa196eaec6061ab7dc1ab5b599725571d26 100644
--- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
@@ -765,20 +765,20 @@ void GaiaScreenHandler::SubmitLoginFormForTest() {
code += "document.getElementById('Passwd').value = '" + test_pass_ + "';";
code += "document.getElementById('signIn').click();";
- frame->ExecuteJavaScript(base::ASCIIToUTF16(code));
+ frame->ExecuteJavaScriptForTests(base::ASCIIToUTF16(code));
} else {
std::string code;
code =
"document.getElementById('identifier').value = '" + test_user_ + "';";
code += "document.getElementById('nextButton').click();";
- frame->ExecuteJavaScript(base::ASCIIToUTF16(code));
+ frame->ExecuteJavaScriptForTests(base::ASCIIToUTF16(code));
if (!test_pass_.empty()) {
code =
"document.getElementById('password').value = '" + test_pass_ + "';";
code += "document.getElementById('nextButton').click();";
- frame->ExecuteJavaScript(base::ASCIIToUTF16(code));
+ frame->ExecuteJavaScriptForTests(base::ASCIIToUTF16(code));
}
}

Powered by Google App Engine
This is Rietveld 408576698