Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4970)

Unified Diff: chrome/test/functional/ispy/client/dom.py

Issue 106523003: [I-Spy] Add support for rebaselining expectations from the web UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « chrome/test/functional/ispy/client/chrome_utils_unittest.py ('k') | chrome/test/functional/ispy/common/chrome_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698