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

Unified Diff: chrome/test/functional/chromeos_login.py

Issue 10257015: Added a new automation hook ExecuteJavascriptInOOBEWebUI() to execute javascript prior to login on… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/test/functional/chromeos_login.py
diff --git a/chrome/test/functional/chromeos_login.py b/chrome/test/functional/chromeos_login.py
index b2f42e78a13fc67121d305d09066c044d6055e18..a74c81990254a674397dabe8333d0601c7c08451 100755
--- a/chrome/test/functional/chromeos_login.py
+++ b/chrome/test/functional/chromeos_login.py
@@ -31,6 +31,13 @@ class ChromeosLogin(pyauto.PyUITest):
"""
return self.GetPrivateInfo()[account_type]
+ def testExecuteJavascriptInLoginWebUI(self):
+ """Test that javascript can be executed in the login page."""
+ msg = 'test success'
+ ret = self.ExecuteJavascriptInLoginWebUI(
+ 'window.domAutomationController.send("%s");' % msg)
+ self.assertEqual(ret, msg)
+
def testGoodLogin(self):
"""Test that login is successful with valid credentials."""
credentials = self._ValidCredentials()

Powered by Google App Engine
This is Rietveld 408576698