From 986ee11d31bf85f8bf3531dd66165fc1cb22cfe1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Gravel Date: Tue, 31 Jan 2023 07:46:54 -0800 Subject: [PATCH] Make the canvas size parameterizable in generated WPT tests. Right now, the "canvas" template parameter was used for both specifying custom attributes for the canvas tag, but also for specifying the size. Having dedicated parameters for the canvas size makes it possible to customize the size for both element and and offscreen tests. Bug: 1409873 Change-Id: I63a550d90871f25a9dcc00a2b4f6ceff5c916d34 --- .../2d.text.font.parse.size.percentage.html | 2 +- html/canvas/tools/gentestutils.py | 20 ++++++++++++++++++- html/canvas/tools/gentestutilsunion.py | 20 ++++++++++++++++++- html/canvas/tools/templates-new.yaml | 6 +++--- html/canvas/tools/templates.yaml | 6 +++--- .../element/drawing-text-to-the-canvas.yaml | 8 ++++---- html/canvas/tools/yaml/element/meta.yaml | 4 ++-- .../tools/yaml/element/text-styles.yaml | 2 +- .../yaml/element/the-canvas-element.yaml | 3 ++- 9 files changed, 54 insertions(+), 17 deletions(-) diff --git a/html/canvas/element/text-styles/2d.text.font.parse.size.percentage.html b/html/canvas/element/text-styles/2d.text.font.parse.size.percentage.html index 92bac8d8cae99e..18476b3b7adb79 100644 --- a/html/canvas/element/text-styles/2d.text.font.parse.size.percentage.html +++ b/html/canvas/element/text-styles/2d.text.font.parse.size.percentage.html @@ -12,7 +12,7 @@

2d.text.font.parse.size.percentage

Actual output:

-

FAIL (fallback content)

+

FAIL (fallback content)