| Index: tools/perf/page_sets/repaint_helpers.py
|
| diff --git a/tools/perf/page_sets/repaint_helpers.py b/tools/perf/page_sets/repaint_helpers.py
|
| index 08bd48f0d75473bcb146ab7a0fe6a743231171b1..a08025c3329ffbfb80d59da0091a975a88940ae1 100644
|
| --- a/tools/perf/page_sets/repaint_helpers.py
|
| +++ b/tools/perf/page_sets/repaint_helpers.py
|
| @@ -26,9 +26,10 @@ def Repaint(action_runner, mode='viewport', width=None, height=None):
|
| chrome.gpuBenchmarking.runMicroBenchmark(
|
| "invalidation_benchmark",
|
| function(value) {},
|
| - """ + str(args) + """
|
| + {{ args }}
|
| );
|
| - """)
|
| + """,
|
| + args=args)
|
|
|
| micro_benchmark_id = action_runner.EvaluateJavaScript(
|
| 'window.benchmark_results.id')
|
| @@ -39,14 +40,14 @@ def Repaint(action_runner, mode='viewport', width=None, height=None):
|
| with action_runner.CreateInteraction('Repaint'):
|
| action_runner.RepaintContinuously(seconds=5)
|
|
|
| - # TODO(catapult:#3028): Fix interpolation of JavaScript values.
|
| action_runner.ExecuteJavaScript("""
|
| window.benchmark_results.message_handled =
|
| chrome.gpuBenchmarking.sendMessageToMicroBenchmark(
|
| - """ + str(micro_benchmark_id) + """, {
|
| - "notify_done": true
|
| - });
|
| - """)
|
| + {{ micro_benchmark_id }}, {
|
| + "notify_done": true
|
| + });
|
| + """,
|
| + micro_benchmark_id=micro_benchmark_id)
|
|
|
|
|
| def WaitThenRepaint(action_runner):
|
|
|