css4j / echosvg

SVG implementation in the Java™ Language, fork of Apache Batik, supporting level 4 selectors and colors.
Apache License 2.0
40 stars 2 forks source link

Tests: test images from canvg's test suite #92 #102

Closed carlosame closed 4 months ago

carlosame commented 4 months ago

I generated the template for the test body with this one-liner:

for f in *; do echo "@Test"; echo "public void test${f^}() throws TranscoderException, IOException {"|tr '-' '_'|sed 's/\.svg//'; echo "    test(\"samples/canvg/${f}\");"; echo "}"; echo; done

I could have prepended the license text to each file with a similar script, but found out that some of the files appear to be generated with commercial software, so it is better to leave them untouched.

Some of the test files, however, had to be edited because they lacked a namespace declaration. Being non-conformant, not even web browsers would render them, although they may work well when embedded within plain HTML (EchoSVG accepts namespaceless svg files embedded in HTML as well).

Closes #92.