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

Unified Diff: chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_perf_pages.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: chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_perf_pages.py
diff --git a/chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_perf_pages.py b/chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_perf_pages.py
index 512caf71a95bc7066eea861b685c62d7568b77e7..701a1b30a6e09421557e8c8f2d9941c3c7d44e2c 100644
--- a/chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_perf_pages.py
+++ b/chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_perf_pages.py
@@ -62,7 +62,7 @@ class CastIdlePage(CastDialogPage):
# Wait for 5s after Chrome is opened in order to get consistent results.
action_runner.Wait(5)
with action_runner.CreateInteraction('Idle'):
- action_runner.ExecuteJavaScript2('collectPerfData();')
+ action_runner.ExecuteJavaScript('collectPerfData();')
action_runner.Wait(SESSION_TIME)
@@ -83,7 +83,7 @@ class CastFlingingPage(media_router_page.CastPage):
self._WaitForResult(
action_runner,
- lambda: action_runner.EvaluateJavaScript2('initialized'),
+ lambda: action_runner.EvaluateJavaScript('initialized'),
'Failed to initialize',
timeout=30)
self.CloseExistingRoute(action_runner, sink_name)
@@ -103,7 +103,7 @@ class CastFlingingPage(media_router_page.CastPage):
self._WaitForResult(
action_runner,
- lambda: action_runner.EvaluateJavaScript2('currentSession'),
+ lambda: action_runner.EvaluateJavaScript('currentSession'),
'Failed to start session',
timeout=10)
@@ -112,18 +112,18 @@ class CastFlingingPage(media_router_page.CastPage):
action_runner,
js_template.Render(
'loadMedia({{ url }});', url=utils.GetInternalVideoURL()),
- lambda: action_runner.EvaluateJavaScript2('currentMedia'),
+ lambda: action_runner.EvaluateJavaScript('currentMedia'),
'Failed to load media',
timeout=120)
action_runner.Wait(5)
- action_runner.ExecuteJavaScript2('collectPerfData();')
+ action_runner.ExecuteJavaScript('collectPerfData();')
action_runner.Wait(SESSION_TIME)
# Stop session
self.ExecuteAsyncJavaScript(
action_runner,
'stopSession();',
- lambda: not action_runner.EvaluateJavaScript2('currentSession'),
+ lambda: not action_runner.EvaluateJavaScript('currentSession'),
'Failed to stop session',
timeout=30)
@@ -170,7 +170,7 @@ class CastMirroringPage(media_router_page.CastPage):
self.WaitUntilDialogLoaded(action_runner, tab)
if not self.CheckIfExistingRoute(tab, sink_name):
raise page.page_test.Failure('Failed to start mirroring session.')
- action_runner.ExecuteJavaScript2('collectPerfData();')
+ action_runner.ExecuteJavaScript('collectPerfData();')
action_runner.Wait(SESSION_TIME)
self.CloseExistingRoute(action_runner, sink_name)

Powered by Google App Engine
This is Rietveld 408576698