| 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 """Base GTalk tests. | 5 """Base GTalk tests. |
| 7 | 6 |
| 8 This module contains a set of common utilities for querying | 7 This module contains a set of common utilities for querying |
| 9 and manipulating the Google Talk Chrome Extension. | 8 and manipulating the Google Talk Chrome Extension. |
| 10 """ | 9 """ |
| 11 | 10 |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 return tab | 257 return tab |
| 259 i = i + 1 | 258 i = i + 1 |
| 260 return None | 259 return None |
| 261 | 260 |
| 262 def _GetInjectedJs(self): | 261 def _GetInjectedJs(self): |
| 263 """Get the javascript to inject in the execution environment.""" | 262 """Get the javascript to inject in the execution environment.""" |
| 264 if self._injected_js is None: | 263 if self._injected_js is None: |
| 265 self._injected_js = open( | 264 self._injected_js = open( |
| 266 os.path.join(os.path.dirname(__file__), 'jsutils.js')).read() | 265 os.path.join(os.path.dirname(__file__), 'jsutils.js')).read() |
| 267 return self._injected_js | 266 return self._injected_js |
| OLD | NEW |