--- /dev/null
+reference
+areatree
(to be written using appropriate xml document)
+To Write a new test
+
+Determine what type of test it is:
+- basic conformance test
+- complex conformance, interaction
+- bugtest for fop
+
+You will add the test to the appropriate file.
+
+Write the test. You can either write an fo document which is copied using copy.xsl or simply write a fragment and use one of the standard document xsl's.
+
+Put the test in test/xml.
+Put the information for the test in testsuite xml file, including a result.
+
1) Aim
Need an infrastructure to develop and perform tests.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE testsuite SYSTEM "testsuite.dtd">
<testsuite profile="Basic Conformance Tests">
+ <testcases profile="Example">
+ <testcases profile="simpleblock" >
+ <test id="1" interaction="none" fo="block" xml="xml/1.xml" xsl="xsl/doc.xsl" level="basic">
+simple test
+</test>
+ <testresult id="1" agreement="full">
+ </testresult>
+ </testcases>
+ </testcases>
<testcases profile="Block Objects">
- <testcases profile="alignment" >
- <test id="bbo1a1" interaction="none" fo="block" xml="xml/1.xml" xsl="xsl/doc.xsl" level="basic">
-
-6-4-2-1.xml contains only one fo:root element.
-
-
+ <testcases profile="alignment" >
+ <test id="bbo1a1" interaction="none" fo="block" xml="xml/bbo1a1.xml" xsl="xsl/doc.xsl" level="basic">
+all sorts of alignment for blocks
+</test>
+ <testresult id="bbo1a1" agreement="issues">
+ </testresult>
+ </testcases>
+ <testcases profile="keeps breaks" >
+ <test id="bbo1b1" interaction="none" fo="block" xml="xml/bbo1b1.xml" xsl="xsl/doc.xsl" level="basic">
+keeps and breaks for blocks
</test>
+ <testresult id="bbo1b1" agreement="issues">
+ </testresult>
</testcases>
</testcases>
</testsuite>
--- /dev/null
+# this can be used to create pdf output of the testsuite files
+
+$JAVA_HOME/bin/java -cp ../build/fop.jar:../lib/w3c.jar:../lib/xalan-2.0.0.jar:../lib/xerces-1.2.3.jar:../lib/jimi-1.0.jar org.apache.fop.tools.TestConverter -pdf -b ./ basictests.xml
--- /dev/null
+<test xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+<data>
+
+<fo:block>
+Test the alignment of text inside a block
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block>
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="start">
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="end">
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="justify">
+a bit of text a bit of text a bit of text a bit of text a bit of text a bit of text
+a bit of text a bit of text a bit of text a bit of text a bit of text a bit of text
+a bit of text a bit of text a bit of text a bit of text a bit of text a bit of text
+a bit of text a bit of text a bit of text a bit of text a bit of text a bit of text
+a bit of text a bit of text a bit of text a bit of text a bit of text a bit of text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="center">
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="center" text-align-last="relative">
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="center" text-align-last="end">
+texttext texttext texttext text texttexttext texttext texttext text text
+text text text text texttext texttext text texttexttext text text text text
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="center" text-align-last="justify">
+texttext text texttext texttext texttext texttext texttext texttext text
+texttext texttext texttext texttext texttext texttext texttext texttext
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="center" text-align-last="inside">
+texttext texttext texttext texttext texttext texttext texttext texttext
+text texttext text texttext text texttext text texttext texttext texttext
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="center" text-indent="10pt">
+texttext texttext texttext texttext texttext texttext texttext texttext
+text texttext text texttext text texttext text texttext texttext texttext
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="start" text-indent="30%">
+texttext texttext texttext texttext texttext texttext texttext texttext
+text texttext text texttext text texttext text texttext texttext texttext
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="end" text-indent="15pt">
+<fo:block text-align="start" text-indent="inherit">
+texttext texttext texttext texttext texttext texttext texttext texttext
+text texttext text texttext text texttext text texttext texttext texttext
+text text text text text text text text text text text text text text text text
+</fo:block>
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="end" last-line-end-indent="20%">
+texttext texttext texttext texttext texttext texttext texttext texttext
+text texttext text texttext text texttext text texttext texttext texttext
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="center" last-line-end-indent="40pt">
+texttext texttext texttext texttext texttext texttext texttext texttext
+text texttext text texttext text texttext text texttext texttext texttext
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="justify" last-line-end-indent="20%">
+texttext texttext texttext texttext texttext texttext texttext texttext
+</fo:block>
+
+<fo:block>
+-
+</fo:block>
+
+<fo:block text-align="justify" text-indent="30pt" last-line-end-indent="20%">
+texttext texttext texttext texttext texttext texttext texttext texttext
+</fo:block>
+
+</data>
+</test>
--- /dev/null
+<test xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+<data>
+
+<fo:block>
+This file covers the use of keeps, breaks, orphans and widows. These are items that effect the page breaking.
+</fo:block>
+
+<fo:block space-before.optimum="660pt" break-before="page" break-after="page">
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block keep-together="always" space-before.optimum="660pt" break-after="page">
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+<fo:block widows="4" space-before.optimum="660pt" break-after="page">
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+text text text text text text text text text text text text text text text text
+</fo:block>
+
+</data>
+</test>