[wpt-sync] Sync PR 22791 - Shape-verifying fuzzy-matched SVG reference tests
Categories
(Core :: SVG, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 22791 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/22791
Details from upstream follow.
Skef Iterum <github@skef.org> wrote:
Shape-verifying fuzzy-matched SVG reference tests
There is currently very little automated verification of shape rendering for SVG elements. This pull request adds reference tests with very-close-to-equivalent path geometries and fuzzy matching. The "fuzz factors" were chosen based by putting a medium-tight margin above the worse of (Linux) Firefox and Chromium rendering. (Opera was verified to be equivalent to the latter; no other browsers were tested.)
The circles, ellipses, lines, and polygons are taken from
shapes-circle-01-t-manual.svg,shapes-ellipse-01-t-manual.svg,shapes-line-02-f-manual.svgandshapes-polygon-01-t-manual.svg.shapes-polygon-02-t-manual.svgis also superseded. The (somewhat trivial) "strokefill" paths are taken fromrender-elems-02-t-manual.svgandrender-elems-03-t-manual.svg. The "linejoincap" tests are taken frompaths-data-10-t-manual.svg. The "miterlimit" test is taken frompainting-stroke-07-t-manual-ref.svg. The "linejoin", "linecap", and "rect" tests are new but more or less supersedepainting-stroke-02-t-manual.svg,painting-stroke-03-t-manual.svg,shapes-rect-02-t-manual.svg, andshapes-rect-03-t-manual.svg. (All of these existing files are in theimportdirectory; none are deleted in this PR.)This zip archive has a record of the max channel difference and pixel counts (in
info.txt), the rasterizations in both browsers, and a difference image for each reference test generated with ImageMagick'scompareoption.(This PR is a sort of rehearsal for a more interesting/future-oriented one along similar lines.)
| Assignee | ||
Updated•6 years ago
|
Updated•4 years ago
|
Description
•