From 819ffe38fdc5d7638f960eee8d386f21286274bb Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Wed, 16 May 2001 12:18:18 +0000 Subject: [PATCH] added some simple test files with blocks also a script to create pdf from test suites git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194245 13f79535-47bb-0310-9956-ffa450edef68 --- test/.cvsignore | 2 + test/Testing | 14 ++++ test/basictests.xml | 27 +++++-- test/createpdf.sh | 3 + test/xml/bbo1a1.xml | 169 ++++++++++++++++++++++++++++++++++++++++++++ test/xml/bbo1b1.xml | 48 +++++++++++++ 6 files changed, 257 insertions(+), 6 deletions(-) create mode 100644 test/.cvsignore create mode 100755 test/createpdf.sh create mode 100644 test/xml/bbo1a1.xml create mode 100644 test/xml/bbo1b1.xml diff --git a/test/.cvsignore b/test/.cvsignore new file mode 100644 index 000000000..cfe67f584 --- /dev/null +++ b/test/.cvsignore @@ -0,0 +1,2 @@ +reference +areatree diff --git a/test/Testing b/test/Testing index 180e73d87..b5dbb4b4f 100644 --- a/test/Testing +++ b/test/Testing @@ -2,6 +2,20 @@ Testing procedure for FOP (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. diff --git a/test/basictests.xml b/test/basictests.xml index 9a710d885..167066af1 100644 --- a/test/basictests.xml +++ b/test/basictests.xml @@ -1,14 +1,29 @@  + + + +simple test + + + + + - - - -6-4-2-1.xml contains only one fo:root element. - - + + +all sorts of alignment for blocks + + + + + + +keeps and breaks for blocks + + diff --git a/test/createpdf.sh b/test/createpdf.sh new file mode 100755 index 000000000..c88ec7970 --- /dev/null +++ b/test/createpdf.sh @@ -0,0 +1,3 @@ +# 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 diff --git a/test/xml/bbo1a1.xml b/test/xml/bbo1a1.xml new file mode 100644 index 000000000..46585cdd7 --- /dev/null +++ b/test/xml/bbo1a1.xml @@ -0,0 +1,169 @@ + + + + +Test the alignment of text inside a 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 + + + +- + + + +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text + + + +- + + + +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text 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 a bit of text + + + +- + + + +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text + + + +- + + + +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text + + + +- + + + +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 + + + +- + + + +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 + + + +- + + + +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 + + + +- + + + +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 + + + +- + + + +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 + + + +- + + + + +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 + + + + +- + + + +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 + + + +- + + + +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 + + + +- + + + +texttext texttext texttext texttext texttext texttext texttext texttext + + + +- + + + +texttext texttext texttext texttext texttext texttext texttext texttext + + + + diff --git a/test/xml/bbo1b1.xml b/test/xml/bbo1b1.xml new file mode 100644 index 000000000..8e428c578 --- /dev/null +++ b/test/xml/bbo1b1.xml @@ -0,0 +1,48 @@ + + + + +This file covers the use of keeps, breaks, orphans and widows. These are items that effect the page breaking. + + + +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text + + + +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text + + + +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text +text text text text text text text text text text text text text text text text + + + + -- 2.39.5