Index: tools/telemetry/telemetry/core/web_contents.py |
diff --git a/tools/telemetry/telemetry/core/web_contents.py b/tools/telemetry/telemetry/core/web_contents.py |
index c5137679de7a383edfe192a8c4eb1089f242cba7..6ebdf24ef6e7dd28e227f326b48fcba2b854b57a 100644 |
--- a/tools/telemetry/telemetry/core/web_contents.py |
+++ b/tools/telemetry/telemetry/core/web_contents.py |
@@ -84,13 +84,13 @@ class WebContents(object): |
"window.__telemetry_testHasReachedNetworkQuiescence()")) |
return has_reached_quiescence |
- def ExecuteJavaScript(self, expr, timeout=DEFAULT_WEB_CONTENTS_TIMEOUT): |
- """Executes expr in JavaScript. Does not return the result. |
+ def ExecuteJavaScript(self, statement, timeout=DEFAULT_WEB_CONTENTS_TIMEOUT): |
+ """Executes statement in JavaScript. Does not return the result. |
- If the expression failed to evaluate, EvaluateException will be raised. |
+ If the statement failed to evaluate, EvaluateException will be raised. |
""" |
return self.ExecuteJavaScriptInContext( |
- expr, context_id=None, timeout=timeout) |
+ statement, context_id=None, timeout=timeout) |
def EvaluateJavaScript(self, expr, timeout=DEFAULT_WEB_CONTENTS_TIMEOUT): |
"""Evalutes expr in JavaScript and returns the JSONized result. |