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

Unified Diff: tools/telemetry/telemetry/page/actions/action_runner.py

Issue 473703002: [Telemetry] Remove waits in telemetry_perf_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « tools/perf/measurements/smoothness_unittest.py ('k') | tools/telemetry/telemetry/page/page.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/actions/action_runner.py
diff --git a/tools/telemetry/telemetry/page/actions/action_runner.py b/tools/telemetry/telemetry/page/actions/action_runner.py
index 1bd11d3514268b767343445afc517d36315fbd24..7798a8ab6929a4f5cfdb9cf8178942b7ac2d5634 100644
--- a/tools/telemetry/telemetry/page/actions/action_runner.py
+++ b/tools/telemetry/telemetry/page/actions/action_runner.py
@@ -22,8 +22,9 @@ from telemetry.web_perf import timeline_interaction_record
class ActionRunner(object):
- def __init__(self, tab):
+ def __init__(self, tab, skip_waits=False):
self._tab = tab
+ self._skip_waits = skip_waits
def _RunAction(self, action):
action.WillRunAction(self._tab)
@@ -153,7 +154,8 @@ class ActionRunner(object):
Args:
seconds: The number of seconds to wait.
"""
- time.sleep(seconds)
+ if not self._skip_waits:
+ time.sleep(seconds)
def WaitForJavaScriptCondition(self, condition, timeout_in_seconds=60):
"""Wait for a JavaScript condition to become true.
« no previous file with comments | « tools/perf/measurements/smoothness_unittest.py ('k') | tools/telemetry/telemetry/page/page.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698