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

Unified Diff: telemetry/telemetry/internal/actions/repaint_continuously.py

Issue 2453073002: [Telemetry] Move from telemetry WaitFor to py_utils WaitFor (Closed)
Patch Set: [Telemetry] Move from telemetry WaitFor to py_utils WaitFor Created 4 years, 2 months 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: telemetry/telemetry/internal/actions/repaint_continuously.py
diff --git a/telemetry/telemetry/internal/actions/repaint_continuously.py b/telemetry/telemetry/internal/actions/repaint_continuously.py
index a8c49579d916beb1eeb00ad101c71fa7218baab7..e1ad4f348a4713bf2aede466577261b23af2b14b 100644
--- a/telemetry/telemetry/internal/actions/repaint_continuously.py
+++ b/telemetry/telemetry/internal/actions/repaint_continuously.py
@@ -4,9 +4,10 @@
import time
-from telemetry.core import util
from telemetry.internal.actions import page_action
+import py_utils
+
class RepaintContinuouslyAction(page_action.PageAction):
"""Continuously repaints the visible content by requesting animation frames
@@ -32,4 +33,4 @@ class RepaintContinuouslyAction(page_action.PageAction):
time.sleep(self._seconds)
def HasMinRafs():
return tab.EvaluateJavaScript('window.__rafCount;') >= 3
- util.WaitFor(HasMinRafs, max(60 - self._seconds, 0))
+ py_utils.WaitFor(HasMinRafs, max(60 - self._seconds, 0))
« no previous file with comments | « telemetry/telemetry/internal/actions/play_unittest.py ('k') | telemetry/telemetry/internal/actions/seek_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698