[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-cvs
Subject:    [Xmlgraphics-fop Wiki] Update of "HowToCreateLayoutEngineTests" by
From:       Apache Wiki <wikidiffs () apache ! org>
Date:       2005-05-27 13:18:14
Message-ID: 20050527131814.26014.52104 () ajax ! apache ! org
[Download RAW message or body]

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for \
change notification.

The following page has been changed by JeremiasMaerki:
http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests

The comment on the change is:
Some additional infos

------------------------------------------------------------------------------
        This test checks <something>.....
      </p>
    </info>
+   <variables>
+     <img>../../resources/images/bgimg300dpi.jpg</img>
+   </variables>
    <fo>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" \
xmlns:svg="http://www.w3.org/2000/svg">  <fo:layout-master-set>
+ 
+         <!-- etc. etc. -->
+ 
+         <fo:block-container background-image="##img">
  
          <!-- etc. etc. -->
  
@@ -60, +67 @@

  
   * The first part ("info") simply contains some information what the test case \
does.  
-  * The second part ("fo") contains a full XSL-FO document.
+  * The second part ("variables") is optional and can contain variable definitions \
for the FO document if you want to avoid a lot of copy/paste. To refer to the \
variable "img" write "##img" in any attribute inside the FO document (see example \
above). The variable substitution is done using XSLT.  
+  * The third part ("fo") contains a full XSL-FO document.
+ 
-  * The third part ("checks") contains all the checks for this test. See below for \
details. +  * The fourth part ("checks") contains all the checks for this test. See \
below for details.  
  Now, when you are creating a test case you can use the XSLT stylesheet called \
"testcase2fo.xsl" if you want to manually run it through FOP (or any other XSL-FO \
implementation). The stylesheet basically extracts the XSL-FO document from the XML \
file.  
  When the JUnit checks for the layout engine are run, the following happens. The \
checks are extracted from the XML file and each of them is checked against the result \
from a FOP processing run. Most tests will check against the "Area Tree XML" that is \
generated by FOP's XMLRenderer. From the command-line you can access it if you use \
"-at" instead of "-pdf", for example. + 
+ When you run test cases the generated Area Tree XML is written to the \
{{{build/test-results/layoutengine}}} directory.  
  == What checks do I have available? ==
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic