[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Java2D tests using SVG
From: |
Ziga Mahkovec |
Subject: |
Java2D tests using SVG |
Date: |
Mon, 13 Jun 2005 02:54:20 +0200 |
Hi,
I've been working on a test suite[1] for Java2D. It uses the Apache
Batik[2] library to render SVG images and then compares the PNG outputs
of J2SE and Classpath/Cairo/jamvm.
This ought to be a comprehensive test since Batik makes heavy use of the
Java2D API and it also has one of the most complete SVG implementations.
Here are some results for Batik's own SVG test suite:
http://bootchart.org/misc/classpath/j2dtest/batik-samples/index.html
At first, most of the tests were failing due to a couple of
unimplemented methods, so I patched those with some workarounds. The
tests also expose some bugs; I'll be sending patches for some of those.
I think this could eventually be used as a Mauve test. We could avoid
using Batik by generating Java source files directly from the SVG images
(using Batik in combination with FreeHEP[3]). The testlets would then
catch exceptions and -- once the bulk of the Java2D API is implemented
-- compare PNG outputs to reference images.
Comments and ideas are welcome.
--
Ziga
[1] http://bootchart.org/misc/classpath/j2dtest/j2dtest.tar
[2] http://xml.apache.org/batik/
[3]
http://java.freehep.org/doc/release/v1.2.2/doc/api/org/freehep/graphicsio/java/JAVAGraphics2D.html
- Java2D tests using SVG,
Ziga Mahkovec <=