| Index: tools/perf/page_sets/todomvc.py
|
| diff --git a/tools/perf/page_sets/todomvc.py b/tools/perf/page_sets/todomvc.py
|
| index 35daccbd6fc847b23504e1983260c776852690d3..43ce61e4f349dc61f50c4e3c173ac1f06ecec710 100644
|
| --- a/tools/perf/page_sets/todomvc.py
|
| +++ b/tools/perf/page_sets/todomvc.py
|
| @@ -5,6 +5,7 @@
|
| from telemetry.page import page as page_module
|
| from telemetry.page import shared_page_state
|
| from telemetry import story
|
| +from telemetry.util import js_template
|
|
|
|
|
| URL_LIST = [
|
| @@ -31,8 +32,8 @@ class TodoMVCPage(page_module.Page):
|
| # TODO(jochen): This interaction does not include the
|
| # WindowProxy::initialize portion before the commit. To fix this, we'll
|
| # have to migrate to TBMv2.
|
| - self.script_to_evaluate_on_commit = (
|
| - 'console.time("%s");' % INTERACTION_NAME)
|
| + self.script_to_evaluate_on_commit = js_template.Render(
|
| + 'console.time({{ label }});', label=INTERACTION_NAME)
|
|
|
| def RunPageInteractions(self, action_runner):
|
| action_runner.ExecuteJavaScript(
|
| @@ -48,8 +49,8 @@ class TodoMVCPage(page_module.Page):
|
| """
|
| )
|
| action_runner.WaitForJavaScriptCondition('this.becameIdle === true')
|
| - # TODO(catapult:#3028): Fix interpolation of JavaScript values.
|
| - action_runner.ExecuteJavaScript('console.timeEnd("%s");' % INTERACTION_NAME)
|
| + action_runner.ExecuteJavaScript(
|
| + 'console.timeEnd({{ label }});', label=INTERACTION_NAME)
|
|
|
|
|
| class TodoMVCPageSet(story.StorySet):
|
|
|