Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 23, 2024
Merged

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

merged 2 commits into from
Jun 23, 2024

Conversation

carlosame
Copy link
Member

@carlosame carlosame commented Jun 22, 2024

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.

@carlosame carlosame added the tests Related to tests label Jun 22, 2024
@carlosame carlosame added this to the 1.1 milestone Jun 22, 2024
@carlosame carlosame merged commit c353903 into master Jun 23, 2024
5 checks passed
@carlosame carlosame deleted the issue-92 branch June 23, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add images from canvg's test suite
1 participant