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

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

Issue 10287002: Increase the timeout for the RefreshPolicies() automation hook. (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 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """PyAuto: Python Interface to Chromium's Automation Proxy. 6 """PyAuto: Python Interface to Chromium's Automation Proxy.
7 7
8 PyAuto uses swig to expose Automation Proxy interfaces to Python. 8 PyAuto uses swig to expose Automation Proxy interfaces to Python.
9 For complete documentation on the functionality available, 9 For complete documentation on the functionality available,
10 run pydoc on this file. 10 run pydoc on this file.
(...skipping 3883 matching lines...) Expand 10 before | Expand all | Expand 10 after
3894 return self._GetResultFromJSONRequest(cmd_dict) 3894 return self._GetResultFromJSONRequest(cmd_dict)
3895 3895
3896 def RefreshPolicies(self): 3896 def RefreshPolicies(self):
3897 """Refreshes all the available policy providers. 3897 """Refreshes all the available policy providers.
3898 3898
3899 Each policy provider will reload its policy source and push the updated 3899 Each policy provider will reload its policy source and push the updated
3900 policies. This call waits for the new policies to be applied; any policies 3900 policies. This call waits for the new policies to be applied; any policies
3901 installed before this call is issued are guaranteed to be ready after it 3901 installed before this call is issued are guaranteed to be ready after it
3902 returns. 3902 returns.
3903 """ 3903 """
3904 timeout = PyUITest.ActionTimeoutChanger(self, 3*60*1000)
Nirnimesh 2012/05/01 21:42:48 add a TODO need space around *
3904 cmd_dict = { 'command': 'RefreshPolicies' } 3905 cmd_dict = { 'command': 'RefreshPolicies' }
3905 self._GetResultFromJSONRequest(cmd_dict, windex=None) 3906 self._GetResultFromJSONRequest(cmd_dict, windex=None)
3906 3907
3907 def SubmitForm(self, form_id, tab_index=0, windex=0, frame_xpath=''): 3908 def SubmitForm(self, form_id, tab_index=0, windex=0, frame_xpath=''):
3908 """Submits the given form ID, and returns after it has been submitted. 3909 """Submits the given form ID, and returns after it has been submitted.
3909 3910
3910 Args: 3911 Args:
3911 form_id: the id attribute of the form to submit. 3912 form_id: the id attribute of the form to submit.
3912 3913
3913 Returns: true on success. 3914 Returns: true on success.
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
5431 successful = result.wasSuccessful() 5432 successful = result.wasSuccessful()
5432 if not successful: 5433 if not successful:
5433 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) 5434 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename)
5434 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ 5435 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \
5435 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) 5436 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL)
5436 sys.exit(not successful) 5437 sys.exit(not successful)
5437 5438
5438 5439
5439 if __name__ == '__main__': 5440 if __name__ == '__main__':
5440 Main() 5441 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