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

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: Added a TODO. 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 # TODO(craigdh): Determine the root cause of RefreshPolicies' flakiness.
3905 # See crosbug.com/30221
3906 timeout = PyUITest.ActionTimeoutChanger(self, 3 * 60 * 1000)
3904 cmd_dict = { 'command': 'RefreshPolicies' } 3907 cmd_dict = { 'command': 'RefreshPolicies' }
3905 self._GetResultFromJSONRequest(cmd_dict, windex=None) 3908 self._GetResultFromJSONRequest(cmd_dict, windex=None)
3906 3909
3907 def SubmitForm(self, form_id, tab_index=0, windex=0, frame_xpath=''): 3910 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. 3911 """Submits the given form ID, and returns after it has been submitted.
3909 3912
3910 Args: 3913 Args:
3911 form_id: the id attribute of the form to submit. 3914 form_id: the id attribute of the form to submit.
3912 3915
3913 Returns: true on success. 3916 Returns: true on success.
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
5431 successful = result.wasSuccessful() 5434 successful = result.wasSuccessful()
5432 if not successful: 5435 if not successful:
5433 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) 5436 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename)
5434 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ 5437 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \
5435 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) 5438 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL)
5436 sys.exit(not successful) 5439 sys.exit(not successful)
5437 5440
5438 5441
5439 if __name__ == '__main__': 5442 if __name__ == '__main__':
5440 Main() 5443 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