aboutsummaryrefslogtreecommitdiffstats
path: root/test/java
Commit message (Collapse)AuthorAgeFilesLines
* Don't fail on empty lists.Jeremias Maerki2005-08-081-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/inlineblock@230804 13f79535-47bb-0310-9956-ffa450edef68
* Allow "<0" and ">0" expressions for the "p" part on a penalty.Jeremias Maerki2005-08-021-15/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@227027 13f79535-47bb-0310-9956-ffa450edef68
* Made the testcase filter available to the outside (for visual testing). Jeremias Maerki2005-07-281-8/+19
| | | | | | Added support for an optional private-testcases directory which serves as a staging area for new tests and private tests. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225894 13f79535-47bb-0310-9956-ffa450edef68
* Changes for restoring JDK 1.3 compatibility. Jeremias Maerki2005-07-271-6/+11
| | | | | | | | Submitted by: Robert Bielik <Robert.Bielik.at.gyros.com> (Patch committed with modifications and additional changes for test code) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225486 13f79535-47bb-0310-9956-ffa450edef68
* Optional attribute "fail-msg" for the "true" check so a custom error message ↵Jeremias Maerki2005-07-261-3/+12
| | | | | | can be supplied. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225248 13f79535-47bb-0310-9956-ffa450edef68
* Element list logging facility resurrected as an ElementListObserver (see ↵Jeremias Maerki2005-05-2310-39/+527
| | | | | | | | | | LoggingElementListObserver). DebugHelper registers that logging facility. Add a call to your own test apps to log element lists. Added an additional check implementation for the layout engine checker which allows checking of Knuth element lists using the ElementListObserver. (Usage example: See keep-together2.xml) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198670 13f79535-47bb-0310-9956-ffa450edef68
* Fixed checkstyle warnings.Jeremias Maerki2005-03-141-7/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198495 13f79535-47bb-0310-9956-ffa450edef68
* -Dfop.layoutengine.starts-with=breaks selects all tests that begin with ↵Jeremias Maerki2005-01-311-0/+5
| | | | | | "breaks", eg. "breaks2.xml". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198346 13f79535-47bb-0310-9956-ffa450edef68
* Set base URL so relative URLs work in testsJeremias Maerki2005-01-241-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198308 13f79535-47bb-0310-9956-ffa450edef68
* getLocalName() doesn't seem to work in this case in JDK 1.4.1.Jeremias Maerki2005-01-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198278 13f79535-47bb-0310-9956-ffa450edef68
* Using only DOM elements to create checks. This should help avoid errors due ↵Jeremias Maerki2005-01-171-6/+9
| | | | | | to comment nodes being passed to the factory method. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198275 13f79535-47bb-0310-9956-ffa450edef68
* Style fixJeremias Maerki2005-01-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198260 13f79535-47bb-0310-9956-ffa450edef68
* Add ability to optionally specify a simple textfile with a list of filenames ↵Jeremias Maerki2005-01-061-2/+28
| | | | | | | | | | of testcases to be disabled (one entry per line). Specify a filename with that textfile in the system property "fop.layoutengine.disabled". disabled-testcases.txt should serve as our default file for this purpose (ex. in Gump). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198242 13f79535-47bb-0310-9956-ffa450edef68
* Ability to restrict the testcases being processed to one for debugging. Just ↵Jeremias Maerki2005-01-061-1/+12
| | | | | | | | | specify its filename as a system property "fop.layoutengine.single". Example: -Dfop.layoutengine.single=padding2.xml git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198233 13f79535-47bb-0310-9956-ffa450edef68
* XObject.str() fails the second time it is called. Makes debugging difficult. ↵Jeremias Maerki2005-01-061-2/+3
| | | | | | Get the result string early. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198231 13f79535-47bb-0310-9956-ffa450edef68
* Adding new eval check for simpler checks and more informative error messages.Jeremias Maerki2005-01-062-0/+80
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198229 13f79535-47bb-0310-9956-ffa450edef68
* Initial version of a layout engine testing subsystem.Jeremias Maerki2005-01-054-0/+386
| | | | | | | | | Uses the area tree XML to check the output of the layout engine. Provides a TestSuite for use with JUnit. Individual test cases are defined in XML files. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198225 13f79535-47bb-0310-9956-ffa450edef68
* Moved test classes to their proper location.Jeremias Maerki2004-09-2315-0/+1288
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197970 13f79535-47bb-0310-9956-ffa450edef68
* Initial import of multi-threading testbed.Jeremias Maerki2004-09-075-0/+432
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197934 13f79535-47bb-0310-9956-ffa450edef68
* Took advantage of the Transformer similarities between FO input andGlen Mazza2004-07-251-2/+1
| | | | | | | (XSL, XSLT) input to combine the two into InputHandler. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197840 13f79535-47bb-0310-9956-ffa450edef68
* Removed the non-File constructors from the InputHandler subclasses in favorGlen Mazza2004-07-251-1/+1
| | | | | | | | | | | of JAXP (for embedded use), and standardized FOFileHandler to use a StreamSource (like XSLTInputHandler). Currently, command Line usage works only with files, but We may need to expand the constructors here somewhat again should we provide other input options from the command line. other options git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197838 13f79535-47bb-0310-9956-ffa450edef68
* Combined the apps.Driver class into apps.Fop. (195 LOC total.) PrimaryGlen Mazza2004-07-242-25/+25
| | | | | | | | | | | | | | | | | | | benefit is to make Fop self-documenting in external code, also none of the API ideas called for retention of the Driver class (even if there were different ideas for its replacement). Let's try this for a few weeks, if it confuses people too much (or when the API starts to grow again) we can bring back Driver, possibly under a different name, apps.FopProcess, perhaps. See also: http://marc.theaimsgroup.com/?l=fop-dev&m=108947697611032&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108966015504506&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108942673103344&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108958756030147&w=2 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197827 13f79535-47bb-0310-9956-ffa450edef68
* 1.) render() methods moved from Driver to XSLTInputHandler and FOFileHandler.Glen Mazza2004-07-202-21/+3
| | | | | | | 2.) -param command line switch implemented for xml->xslt->pdf processes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197803 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved exclusively to Simon's DefaultHandler object for both TransformerGlen Mazza2004-07-191-4/+4
| | | | | | | | | | | | | | | | and SAXParser usage. DefaultHandler implements the ContentHandler interface so it can be used where the latter was previously used, also it provides more functionality. [1] 2.) Updated the examples and internal code accordingly. 3.) Renamed ExampleFO2PDFUsingSAX to ...Parser to avoid confusion (both use SAX.) [1] http://www.cafeconleche.org/books/xmljava/chapters/ch06s03.html#d0e8440 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197802 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Driver constructor modified to require RenderType, and setter functionsGlen Mazza2004-07-192-15/+7
| | | | | | | | | | | | | | | | for RenderType and FOUserAgent removed, to allow for better checking of a valid Driver object at time of construction. (Also, will reduce need to validate Driver object should it be a parameter to a method.) 2.) Added validity checking of renderType to FOTreeBuilder as well, in effect decoupling Driver from FOTreeBuilder (the latter can work on its own now.) 3.) Updated the various examples and the documentation to indicate the new API. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197801 13f79535-47bb-0310-9956-ffa450edef68
* Removed the Driver.run() method in favor of JAXP.Glen Mazza2004-07-141-32/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197790 13f79535-47bb-0310-9956-ffa450edef68
* Switch to JAXP identity transformation for DOM Document example.Glen Mazza2004-07-071-4/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197765 13f79535-47bb-0310-9956-ffa450edef68
* 1. Output constant types (RENDER_PDF, RENDER_PS, etc.) made common betweenGlen Mazza2004-06-261-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | CommandLineOptions and Driver, and factored into fo.Constants interface. 2. New Driver(AWTRenderer renderer) constructor added in apps.Driver for the AWTRenderer (which does reloading, unique among the output types.) Note reloading currently doesn't work--AWTRenderer not yet functional. 3. Driver.hasData() method removed from API--a search on when it was implemented dates it to 2001, when reset() was coded. Unsure of its need, and so removed until we have user requests for it. 4. Renderers abstracted away from API in favor of just calling .setRenderer(int Rendertype), and configuring user-configurable options in FOUserAgent. 5. Driver.setRenderer(String <renderer class name>) also dropped. If external user need for it, can be re-implemented fairly easily via a "renderer override" string in FOUserAgent, for which FOTreeHandler can read and use instead. 6. Validity checking added to fo:flow, and convenience functions defining the "%block;" parameter entity and neutral containers as defined in 6.2 of spec [1] added to FObj. [1] http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#section-N9447-Formatting-Object-Content git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197745 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved the CommandLineOptions' InputHandler object into FOUserAgent, allowingGlen Mazza2004-06-252-12/+4
| | | | | | | | | | | | | | | | for a no-parameter constructor for AWTRenderer (like the other renderers). (Code is not yet ideal in AWTRenderer, but will do the task.) 2.) AWT renderer handling now more similar to the other renderers (simplifications in Driver, Fop). 3.) Driver.getRenderer() removed from API. (Renderer configuration now mostly done through FOUserAgent, and setup of renderer prior to calling setRenderer().) 4.) Validity checking added to region-after, -start, -end, and -before. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197744 13f79535-47bb-0310-9956-ffa450edef68
* Change of file to use Commons-logging.Glen Mazza2004-04-021-12/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197477 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-2713-595/+179
| | | | | | http://www.apache.org/dev/apply-license.html. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197384 13f79535-47bb-0310-9956-ffa450edef68
* Adapt to changes in Commons IO's APIs.Jeremias Maerki2004-02-061-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197334 13f79535-47bb-0310-9956-ffa450edef68
* Basic functionality tests for PS and RTF besides PDF. Still no detailed ↵Jeremias Maerki2003-11-081-1/+43
| | | | | | output checking, only checking that no exception is thrown. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196997 13f79535-47bb-0310-9956-ffa450edef68
* Redfactored generic FOP test to self-contained JUnit test. Joerg Pietschmann2003-09-271-0/+173
| | | | | | | More to add. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196940 13f79535-47bb-0310-9956-ffa450edef68
* Fixed Testcase. Joerg Pietschmann2003-09-271-22/+1
| | | | | | | | Some style changes. Replace FIXME with TODO git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196939 13f79535-47bb-0310-9956-ffa450edef68
* SAX filter providing a MD5 checksum for ensuring XML input integrity.Joerg Pietschmann2003-09-192-0/+360
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196925 13f79535-47bb-0310-9956-ffa450edef68
* Initial set of test casesJeremias Maerki2003-07-0410-0/+1146
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196604 13f79535-47bb-0310-9956-ffa450edef68