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() |