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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 9467013: Add prefs UI tests for Incognito exceptions for new Settings UI. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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/webdriver_pages/settings.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
===================================================================
--- chrome/test/pyautolib/pyauto.py (revision 124826)
+++ chrome/test/pyautolib/pyauto.py (working copy)
@@ -1294,7 +1294,7 @@
self._SendJSONRequest(-1, json.dumps(cmd_dict),
self.action_max_timeout_ms()))
- def SetPrefs(self, path, value):
+ def SetPrefs(self, path, value, windex=0):
"""Set preference for the given path.
Preferences are stored by Chromium as a hierarchical dictionary.
@@ -1315,10 +1315,11 @@
The user has to ensure that the right value is specified for the
right key. It's useful to dump the preferences first to determine
what type is expected for a particular preference path.
+ windex: window index to work on. Defaults to 0 (first window).
"""
cmd_dict = {
'command': 'SetPrefs',
- 'windex': 0,
+ 'windex': windex,
'path': path,
'value': value,
}
@@ -5037,6 +5038,7 @@
sys.exit(0)
pyauto_suite = PyUITestSuite(suite_args)
loaded_tests = unittest.defaultTestLoader.loadTestsFromNames(test_names)
+ pyauto_suite = PyUITestSuite(suite_args)
pyauto_suite.addTests(loaded_tests)
verbosity = 1
if self._options.verbose:
« no previous file with comments | « chrome/test/functional/webdriver_pages/settings.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698