Render Jinja templating in the "attributes" test param
The "attributes" test parameter is used in the main test grid template
files, allowing a different value for each variant in the grid:
https://crsrc.org/c/third_party/blink/web_tests/external/wpt/html/canvas/tools/templates/testharness_element_grid.html;l=45;drc=ef6670ca348908363bc61637d9ad9981920d6fce
It could be useful to use Jinja templating for the "attributes" param,
to parameterize the pixelFormat of the canvas for instance:
attributes: "{ pixelFormat: '{{ pixel_format }}' }"
Because the Jinja templating will evaluate to a different value for each
variant, we need to render that param individually for each variant,
before rendering the final file template.
Bug: 340005429
Change-Id: Idcfa768d3a3aa6deedec8a61e017b398e34faef0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5605305
Commit-Queue: Jean-Philippe Gravel jpgravel@chromium.org
Reviewed-by: Andres Ricardo Perez andresrperez@chromium.org
Cr-Commit-Position: refs/heads/main@{#1314806}