> Peter Kullmann wrote: > > As an alternative approach for c) one could create tests along > the following lines: Suppose you want to test left margin > properties of a block. For this a simple fo file is rendered as > a bitmap. The bitmap will not be compared to a reference bitmap > but some elementary assertions are calculated. For instance one > such assertion could be: "The rectangle of width 1 inch of the > left edge is blank." I don't know of a tool that can do this > but it should be pretty straight forward to implement. >
There are 2 test points: renderer input and renderer output: - Renderer input: establish the SVG renderer as reference and use an 'XML file compare' program. The XSL Committee will hopefully prepare samples to demonstrate and validate concepts and rules. - Renderer output: Acrobat has a 'PDF document compare' function. This type of the tool validates the PDF renderer. The AWT renderer can be validated too by having the Java Printing System generate a PDF document with a PDF printer driver. The Java Printing System can generate PCL files as well, if better suited. There will always be problems, because equivalent, valid results may be achieved by different graphic objects or different sequences of graphic calls. Therefore there will always be automated and manual/visual methods. Hansuli Anderegg