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

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

Issue 2671693002: [Telemetry] Validate args in js_template rendering (Closed)
Patch Set: fix old api Created 3 years, 11 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/action_runner.py
diff --git a/telemetry/telemetry/internal/actions/action_runner.py b/telemetry/telemetry/internal/actions/action_runner.py
index 3c1092d9dbd6a17114109d43cd94ac2de240d581..61aa5c571318db40285de8a0d8c58872dac70b7a 100644
--- a/telemetry/telemetry/internal/actions/action_runner.py
+++ b/telemetry/telemetry/internal/actions/action_runner.py
@@ -282,7 +282,7 @@ class ActionRunner(object):
'New clients should use WaitForJavaScriptCondition2. See go/catabug/3028')
def WaitForJavaScriptCondition(self, condition, **kwargs):
"""Wait for a JavaScript condition to become true."""
- timeout = kwargs.get('timeout_in_seconds', 60)
+ timeout = kwargs.pop('timeout_in_seconds', None) or 60
self._tab.WaitForJavaScriptCondition2(
js_template.Render(condition, **kwargs), timeout=timeout)

Powered by Google App Engine
This is Rietveld 408576698