Index: chrome/test/functional/test_utils.py |
diff --git a/chrome/test/functional/test_utils.py b/chrome/test/functional/test_utils.py |
index c2b7c2db78fbf2ae7fa2fcb40951a0a792a03db9..b57c8d869b331d320b69ca0424cfb56b89702e05 100644 |
--- a/chrome/test/functional/test_utils.py |
+++ b/chrome/test/functional/test_utils.py |
@@ -364,7 +364,7 @@ def LoginToDevice(test, test_account='test_google_account'): |
If no test account is specified, we use test_google_account as the default. |
You can choose test accounts from - |
- chrome/test/data/pyauto_private/private_tests_info.txt |
+ chrome/test/data/pyauto_private/private_tests_info.txt |
Args: |
test_account: The account used to login to the Chromeos device. |
@@ -434,3 +434,17 @@ def AssertInfobarTypeDoesNotAppear(test, infobar_type, windex=0, tab_index=0): |
test, infobar_type, windex, tab_index) is not None, timeout=20), |
msg=('Infobar type for %s appeared when it should be hidden.' |
% infobar_type)) |
+ |
+def OpenCroshVerification(self): |
+ """ Verify that crosh is opened correctly. |
Nirnimesh
2012/07/26 23:09:03
Remove space after """
Mention that this test ope
tturchetto
2012/07/26 23:37:47
Done.
|
+ |
+ This function verifies crosh is opened correctly - verify all browser window |
+ is closed before open crosh, then verify crosh is opened in first window |
+ and first tab, ready for further corsh test. |
+ """ |
+ self.assertEqual(0, self.GetBrowserWindowCount()) |
+ self.OpenCrosh() |
+ self.assertEqual(1, self.GetBrowserWindowCount()) |
+ self.assertEqual(1, self.GetTabCount(), |
+ msg='Could not open crosh') |
+ self.assertEqual('crosh', self.GetActiveTabTitle()) |