Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import os | |
| 6 | |
| 7 | |
| 8 _script = None | |
| 9 | |
| 10 def GetScriptToWaitForUnchangingDOM(): | |
| 11 """Returns a JavaScript script that waits for the DOM to stop changing.""" | |
| 12 global _script | |
| 13 if not _script: | |
| 14 with open( | |
| 15 os.path.join(os.path.dirname(__file__), 'wait_on_ajax.js'), 'r') as f: | |
| 16 _script = f.read() | |
| 17 return _script | |
|
frankf
2013/12/11 00:40:31
just return the string
craigdh
2013/12/11 21:56:38
Done.
| |
| OLD | NEW |