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

Unified Diff: tools/perf/page_sets/system_health/media_stories.py

Issue 2719853003: [Telemetry refactor] Drop "2" from method calls to JS API (Closed)
Patch Set: Created 3 years, 10 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: tools/perf/page_sets/system_health/media_stories.py
diff --git a/tools/perf/page_sets/system_health/media_stories.py b/tools/perf/page_sets/system_health/media_stories.py
index c8a68ae5caa879c9338ce2858e6157539be9c2ea..ad079e8d4b515282fcec217d1b9a326dc0bcc3a8 100644
--- a/tools/perf/page_sets/system_health/media_stories.py
+++ b/tools/perf/page_sets/system_health/media_stories.py
@@ -45,7 +45,7 @@ class _MediaStory(system_health_story.SystemHealthStory):
self.PLAY_DURATION - self._GetTimeInSeconds(action_runner))
def _GetTimeInSeconds(self, action_runner):
- minutes, seconds = action_runner.EvaluateJavaScript2(
+ minutes, seconds = action_runner.EvaluateJavaScript(
'document.querySelector({{ selector }}).textContent',
selector=self.TIME_SELECTOR).split(':')
return int(minutes * 60 + seconds)
« no previous file with comments | « tools/perf/page_sets/system_health/long_running_stories.py ('k') | tools/perf/page_sets/text_selection_sites.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698