OLD | NEW |
1 #!/usr/bin/env python | |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
5 | 4 |
6 """Worker thread base class. | 5 """Worker thread base class. |
7 | 6 |
8 Worker threads are used to run multiple PyUITests simultaneously. They | 7 Worker threads are used to run multiple PyUITests simultaneously. They |
9 synchronize calls to the browser.""" | 8 synchronize calls to the browser.""" |
10 | 9 |
11 import itertools | 10 import itertools |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 @synchronized | 146 @synchronized |
148 def GetDOMValue(self, name, url=None): | 147 def GetDOMValue(self, name, url=None): |
149 return self.__pyauto.GetDOMValue(name, tab_index=self.__FindTabLocked(url)) | 148 return self.__pyauto.GetDOMValue(name, tab_index=self.__FindTabLocked(url)) |
150 | 149 |
151 def WaitUntil(self, *args, **kwargs): | 150 def WaitUntil(self, *args, **kwargs): |
152 """We do not need to lock WaitUntil since it does not call into Chrome. | 151 """We do not need to lock WaitUntil since it does not call into Chrome. |
153 | 152 |
154 Ensure that the function passed in the args is thread safe. | 153 Ensure that the function passed in the args is thread safe. |
155 """ | 154 """ |
156 return self.__pyauto.WaitUntil(*args, **kwargs) | 155 return self.__pyauto.WaitUntil(*args, **kwargs) |
OLD | NEW |