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

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

Issue 10836015: Convert more automation calls to the JSON interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some failing tests. Created 8 years, 5 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/test/functional/content.py ('k') | chrome/test/functional/themes.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/multiprofile.py
diff --git a/chrome/test/functional/multiprofile.py b/chrome/test/functional/multiprofile.py
index 7cd46e8927eee90d87fd66ab212f020a79c0388b..3a3994285f2f64eaa6b814130eac716645ff50df 100755
--- a/chrome/test/functional/multiprofile.py
+++ b/chrome/test/functional/multiprofile.py
@@ -210,8 +210,8 @@ class MultiprofileTest(pyauto.PyUITest):
self.assertEqual('chrome://newtab/', info['windows'][2]['tabs'][0]['url'])
self._SetStartUpPage('http://www.yahoo.com', windex=2)
# Exit Profile 1 / Profile 2
- self.CloseBrowserWindow(1)
self.CloseBrowserWindow(2)
+ self.CloseBrowserWindow(1)
# Relaunch Browser with Profile 2, verify startup page.
self._AssertStartUpPage('http://www.yahoo.com', profile='Profile 2')
# Relaunch Browser with Profile 1, verify startup page.
@@ -228,8 +228,8 @@ class MultiprofileTest(pyauto.PyUITest):
self.OpenNewBrowserWindowWithNewProfile()
self._SetHomePage('http://www.yahoo.com', windex=2)
# Exit Profile 1 / Profile 2
- self.CloseBrowserWindow(1)
self.CloseBrowserWindow(2)
+ self.CloseBrowserWindow(1)
# Relaunch Browser with Profile 2, verify startup page.
self._AssertHomePage('http://www.yahoo.com', profile='Profile 2')
# Relaunch Browser with Profile 1, verify startup page.
@@ -247,8 +247,8 @@ class MultiprofileTest(pyauto.PyUITest):
self.OpenNewBrowserWindowWithNewProfile()
self._SetSessionRestoreURLs(self._RESTORE_DEFAULT_URL_VALUE, windex=2)
# Exit Profile 1 / Profile 2
- self.CloseBrowserWindow(1)
self.CloseBrowserWindow(2)
+ self.CloseBrowserWindow(1)
# Relaunch Browser with Profile 1, verify session restores on startup.
url_list = ['http://www.google.com/', 'http://news.google.com/']
self._AssertSessionRestore(url_list, self._RESTORE_LASTOPEN_URL_VALUE,
@@ -269,8 +269,8 @@ class MultiprofileTest(pyauto.PyUITest):
# Launch browser with new Profile 2.
self.OpenNewBrowserWindowWithNewProfile()
# Exit Profile 1 / Profile 2
- self.CloseBrowserWindow(1)
self.CloseBrowserWindow(2)
+ self.CloseBrowserWindow(1)
# Relaunch Browser with Profile 1, verify instant search is enabled.
self.AppendBrowserLaunchSwitch('--profile-directory=Profile 1')
self.RestartBrowser(clear_profile=False)
@@ -296,8 +296,8 @@ class MultiprofileTest(pyauto.PyUITest):
'&utm_source=opensearch', 2)
self.MakeSearchEngineDefault('youtube.com', windex=2)
# Exit Profile 1 / Profile 2
- self.CloseBrowserWindow(1)
self.CloseBrowserWindow(2)
+ self.CloseBrowserWindow(1)
# Relaunch Browser with Profile 1, verify default search engine as 'Hulu'.
self._AssertDefaultSearchEngine('hulu.com', profile='Profile 1')
# Relaunch Browser with Profile 2, verify default search engine as
@@ -316,9 +316,8 @@ class MultiprofileTest(pyauto.PyUITest):
self._AddSearchEngine('foo', 'foo.com', 'http://foo/?q=%s', windex=2)
# Delete search engine 'foo.com' from Profile 1 and exit.
self.DeleteSearchEngine('foo.com', windex=1)
- self.CloseBrowserWindow(1)
- # Exit Profile 2
self.CloseBrowserWindow(2)
+ self.CloseBrowserWindow(1)
# Relaunch Browser with Profile 1, verify search engine 'foo.com'
# is deleted.
self.AppendBrowserLaunchSwitch('--profile-directory=Profile 1')
« no previous file with comments | « chrome/test/functional/content.py ('k') | chrome/test/functional/themes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698