Chromium Code Reviews| Index: chrome/test/functional/ispy/client/dom.py |
| diff --git a/chrome/test/functional/ispy/client/dom.py b/chrome/test/functional/ispy/client/dom.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6f4c3e5000c47f6304cd2b83aab670a95b94e508 |
| --- /dev/null |
| +++ b/chrome/test/functional/ispy/client/dom.py |
| @@ -0,0 +1,17 @@ |
| +# Copyright 2013 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import os |
| + |
| + |
| +_script = None |
| + |
| +def GetScriptToWaitForUnchangingDOM(): |
| + """Returns a JavaScript script that waits for the DOM to stop changing.""" |
| + global _script |
| + if not _script: |
| + with open( |
| + os.path.join(os.path.dirname(__file__), 'wait_on_ajax.js'), 'r') as f: |
| + _script = f.read() |
| + return _script |
|
frankf
2013/12/11 00:40:31
just return the string
craigdh
2013/12/11 21:56:38
Done.
|