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

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: Ready for review. 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..d35deec9f220ca4810f96757c6d5a83f0665c6b6 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 testExecuteJavascriptInLogin(self):
+ """Test that javascript can be executed in the login page."""
+ msg = 'test success'
+ ret = self.ExecuteJavascriptInLogin(
+ '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