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

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

Issue 10388107: [chromeos] Fix Logout automation when no browser windows are present. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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
« no previous file with comments | « chrome/browser/automation/testing_automation_provider_chromeos.cc ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/chromeos_login.py
diff --git a/chrome/test/functional/chromeos_login.py b/chrome/test/functional/chromeos_login.py
index 86bc80dde2b2127a00f1591536e2779f0175f08d..c90c65f4c4c81c3de7233004c52234caf59f310d 100755
--- a/chrome/test/functional/chromeos_login.py
+++ b/chrome/test/functional/chromeos_login.py
@@ -156,6 +156,18 @@ class ChromeosLogin(pyauto.PyUITest):
self.Logout()
self.testLoginToCreateNewAccount()
+ def testLogoutWithNoWindows(self):
+ """Verify logout when no browser windows are present."""
+ self.testGoodLogin()
+ for i in range(5):
+ self.OpenNewBrowserWindow(True)
+ for _ in range(self.GetBrowserWindowCount()):
+ self.CloseBrowserWindow(0)
+ self.assertEqual(0, self.GetBrowserWindowCount(),
+ msg='Could not close all browser windows')
+ self.Logout()
+ self.testGoodLogin()
+
if __name__ == '__main__':
pyauto_functional.Main()
« no previous file with comments | « chrome/browser/automation/testing_automation_provider_chromeos.cc ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698