| OLD | NEW |
| 1 #!/usr/bin/python | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 | |
| 3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 4 # 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 |
| 5 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 6 | 4 |
| 7 """Python representation for Chromium Omnibox. | 5 """Python representation for Chromium Omnibox. |
| 8 | 6 |
| 9 Obtain one of these from PyUITestSuite::GetOmniboxInfo() call. | 7 Obtain one of these from PyUITestSuite::GetOmniboxInfo() call. |
| 10 | 8 |
| 11 Example: | 9 Example: |
| 12 class MyTest(pyauto.PyUITest): | 10 class MyTest(pyauto.PyUITest): |
| 13 def testBasic(self): | 11 def testBasic(self): |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 132 |
| 135 This need not be the same as the user-inputted text, since omnibox may | 133 This need not be the same as the user-inputted text, since omnibox may |
| 136 autocomplete some URLs, or the user may move omnibox popup selection | 134 autocomplete some URLs, or the user may move omnibox popup selection |
| 137 up/down. | 135 up/down. |
| 138 """ | 136 """ |
| 139 return self.Properties('text') | 137 return self.Properties('text') |
| 140 | 138 |
| 141 def IsQueryInProgress(self): | 139 def IsQueryInProgress(self): |
| 142 """Determine if a query is in progress.""" | 140 """Determine if a query is in progress.""" |
| 143 return self.Properties('query_in_progress') | 141 return self.Properties('query_in_progress') |
| 144 | |
| OLD | NEW |