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

Side by Side Diff: chrome/test/pyautolib/pyauto.py

Issue 7575032: Use --skip-oauth-login when firing chrome using pyauto on chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """PyAuto: Python Interface to Chromium's Automation Proxy. 7 """PyAuto: Python Interface to Chromium's Automation Proxy.
8 8
9 PyAuto uses swig to expose Automation Proxy interfaces to Python. 9 PyAuto uses swig to expose Automation Proxy interfaces to Python.
10 For complete documentation on the functionality available, 10 For complete documentation on the functionality available,
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 These are flags needed to facilitate testing. Override this function to 212 These are flags needed to facilitate testing. Override this function to
213 use a custom set of Chrome flags. 213 use a custom set of Chrome flags.
214 """ 214 """
215 if self.IsChromeOS(): 215 if self.IsChromeOS():
216 return [ 216 return [
217 '--homepage=about:blank', 217 '--homepage=about:blank',
218 '--allow-file-access', 218 '--allow-file-access',
219 '--allow-file-access-from-files', 219 '--allow-file-access-from-files',
220 '--enable-file-cookies', 220 '--enable-file-cookies',
221 '--dom-automation', 221 '--dom-automation',
222 '--skip-oauth-login',
222 ] 223 ]
223 else: 224 else:
224 return [] 225 return []
225 226
226 def CloseChromeOnChromeOS(self): 227 def CloseChromeOnChromeOS(self):
227 """Gracefully exit chrome on ChromeOS.""" 228 """Gracefully exit chrome on ChromeOS."""
228 229
229 def _GetListOfChromePids(): 230 def _GetListOfChromePids():
230 """Retrieves the list of currently-running Chrome process IDs. 231 """Retrieves the list of currently-running Chrome process IDs.
231 232
(...skipping 3962 matching lines...) Expand 10 before | Expand all | Expand 10 after
4194 successful = result.wasSuccessful() 4195 successful = result.wasSuccessful()
4195 if not successful: 4196 if not successful:
4196 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) 4197 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename)
4197 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ 4198 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \
4198 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) 4199 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL)
4199 sys.exit(not successful) 4200 sys.exit(not successful)
4200 4201
4201 4202
4202 if __name__ == '__main__': 4203 if __name__ == '__main__':
4203 Main() 4204 Main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698