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

Unified Diff: chrome/browser/chromeos/login/saml/saml_browsertest.cc

Issue 2503453003: Remove all calls to domAutomationController.setAutomationId.
Patch Set: Fix nacl_browsertest_util.cc Created 3 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/chromeos/login/saml/saml_browsertest.cc
diff --git a/chrome/browser/chromeos/login/saml/saml_browsertest.cc b/chrome/browser/chromeos/login/saml/saml_browsertest.cc
index a63586f62e0290774c103046815491e482014664..d63219f34a3df4fee23a876caa4c9229c03eecea 100644
--- a/chrome/browser/chromeos/login/saml/saml_browsertest.cc
+++ b/chrome/browser/chromeos/login/saml/saml_browsertest.cc
@@ -364,7 +364,6 @@ class SamlTest : public OobeBaseTest {
" function f() {"
" $('gaia-signin').gaiaAuthHost_.removeEventListener("
" 'authFlowChange', f);"
- " window.domAutomationController.setAutomationId(0);"
" window.domAutomationController.send("
" $('gaia-signin').isSAML() ? 'SamlLoaded' : 'GaiaLoaded');"
" });");
@@ -523,7 +522,6 @@ IN_PROC_BROWSER_TEST_F(SamlTest, ScrapedSingle) {
"$('gaia-signin').gaiaAuthHost_.addEventListener('authCompleted',"
" function(e) {"
" var password = e.detail.password;"
- " window.domAutomationController.setAutomationId(0);"
" window.domAutomationController.send(password);"
" });"));
@@ -1121,7 +1119,6 @@ void SAMLPolicyTest::ShowGAIALoginForm() {
ASSERT_TRUE(content::ExecuteScript(
GetLoginUI()->GetWebContents(),
"$('gaia-signin').gaiaAuthHost_.addEventListener('ready', function() {"
- " window.domAutomationController.setAutomationId(0);"
" window.domAutomationController.send('ready');"
"});"
"$('add-user-button').click();"));
@@ -1138,7 +1135,6 @@ void SAMLPolicyTest::ShowSAMLInterstitial() {
"$('saml-interstitial').addEventListener("
" 'samlInterstitialPageReady',"
" function() {"
- " window.domAutomationController.setAutomationId(0);"
" window.domAutomationController.send("
" 'samlInterstitialPageReady');"
" });"
@@ -1171,7 +1167,6 @@ void SAMLPolicyTest::ClickChangeAccountOnSAMLInterstitialPage() {
ASSERT_TRUE(content::ExecuteScript(
GetLoginUI()->GetWebContents(),
"$('gaia-signin').gaiaAuthHost_.addEventListener('ready', function() {"
- " window.domAutomationController.setAutomationId(0);"
" window.domAutomationController.send('ready');"
"});"
"$('saml-interstitial').changeAccountLink.click();"));
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | chrome/browser/chromeos/login/test/oobe_base_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698