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

Unified Diff: tools/perf/page_sets/indexeddb_endure_page.py

Issue 2618333006: [tools/perf] Fix JavaScript interpolation in action_runner calls (Closed)
Patch Set: fix a few more interpolations 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
« no previous file with comments | « tools/perf/page_sets/google_pages.py ('k') | tools/perf/page_sets/key_silk_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/indexeddb_endure_page.py
diff --git a/tools/perf/page_sets/indexeddb_endure_page.py b/tools/perf/page_sets/indexeddb_endure_page.py
index ada21bec28ac373c3e23db641a09d179a3dd83e8..176d726195d3c1dcdcdc41c6e1e0d4f685d89f6b 100644
--- a/tools/perf/page_sets/indexeddb_endure_page.py
+++ b/tools/perf/page_sets/indexeddb_endure_page.py
@@ -15,9 +15,8 @@ class IndexedDBEndurePage(page_module.Page):
self._subtest = subtest
def RunPageInteractions(self, action_runner):
- # TODO(catapult:#3028): Fix interpolation of JavaScript values.
- action_runner.ExecuteJavaScript('window.testFilter = "' +
- self._subtest + '";')
+ action_runner.ExecuteJavaScript(
+ 'window.testFilter = {{ subtest }};', subtest=self._subtest)
with action_runner.CreateInteraction('Action_Test'):
action_runner.ExecuteJavaScript('window.test();')
action_runner.WaitForJavaScriptCondition(
« no previous file with comments | « tools/perf/page_sets/google_pages.py ('k') | tools/perf/page_sets/key_silk_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698