aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/layoutengine
Commit message (Collapse)AuthorAgeFilesLines
* Bugzilla #52151: added ant script to get JaCoCo code coverageVincent Hennebert2011-11-182-2/+66
| | | | | | | Patch by Mehdi Houshmand, applied with changes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1203749 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 52136: Added to build file JUnit target that uses a regex to run ↵Vincent Hennebert2011-11-072-3/+3
| | | | | | | | | all of the test cases. Patch by Mehdi Houshmand, applied with minor modifications git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1198853 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla#512010: Simplification of the build.Peter Hancock2011-10-193-52/+287
| | | | | | | Reduced code duplication and layout engine tests. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1186070 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #51928: Upgraded all tests to JUnit 4Vincent Hennebert2011-10-044-206/+216
| | | | | | | Patch by Mehdi Houshmand, applied with minor cosmetics and error fixes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1178747 13f79535-47bb-0310-9956-ffa450edef68
* Added id element to intermediate format to track the origin of content.Vincent Hennebert2011-04-188-306/+167
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1094690 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #49733:Jeremias Maerki2010-08-141-1/+1
| | | | | | | | | | | | | | Resolved compilation (safe one), Checkstyle and many Javadoc warnings. Submitted by: Glenn Adams <glenn.at.skynav.com> Changes to patch: - Restored the deprecated Graphics2DAdapter method (to be removed after Barcode4J 2.1 is released). - Restored Renderer.startPageSequence(LineArea) pending discussion about removal. - build.xml: set max VM to 1024MB instead of 2048MB to allow for 32-bit JVMs. - build.xml: restored longer taskdef names. - Restored Checkstyle 4 file for people running older IDEs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@985537 13f79535-47bb-0310-9956-ffa450edef68
* Application of the patch submitted by Alexander Kiel to improve variable ↵Adrian Cumiskey2009-10-151-18/+18
| | | | | | names around Kerning and KnuthElement (see https://issues.apache.org/bugzilla/show_bug.cgi?id=48003). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@825646 13f79535-47bb-0310-9956-ffa450edef68
* Fixed test error for transcoders.Jeremias Maerki2009-01-302-66/+183
| | | | | | | | | Enabled disabling strict validation from inside the test case. This enabled activating the border/padding test case for region references. Refactored layout engine and intermediate format tests a bit to increase code reuse. Fixed the way border/padding are set on the area tree. The current way had unwanted side-effects for the AreaTreeParser. Added support for border/padding on region references when parsing from area tree XML. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@739386 13f79535-47bb-0310-9956-ffa450edef68
* Run AT tests only if there are such tests.Jeremias Maerki2008-12-111-3/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@725702 13f79535-47bb-0310-9956-ffa450edef68
* Removed temporary debug code.Jeremias Maerki2008-08-131-37/+1
| | | | | | | Switched tests to changed namespace URI for document navigation. Added IF checks for fox:destionation. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@685466 13f79535-47bb-0310-9956-ffa450edef68
* Added support for bookmarks to intermediate format (including PDF painter).Jeremias Maerki2008-08-123-23/+111
| | | | | | Added infrastructure for IF testing similar to AT testing with XPaths. To minimize the additional processing needed it is attached to the layout engine tests and only executed if there are IF checks in the test case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@685170 13f79535-47bb-0310-9956-ffa450edef68
* Fed up with all those trailing whitespaces. Let's remove them all (once... ↵Vincent Hennebert2008-07-248-77/+77
| | | | | | and for all?) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679326 13f79535-47bb-0310-9956-ffa450edef68
* Checkstyle and minor typo fixesVincent Hennebert2008-05-091-26/+26
| | | | | | | Set svn:keywords and svn:eol-style properties on new files git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@654783 13f79535-47bb-0310-9956-ffa450edef68
* * Added font substitution configuration reader, model, business logic, junit ↵Adrian Cumiskey2008-05-061-2/+2
| | | | | | | | | | | | test and docs. * Added java 1.5 generics comments to many methods. * Performed some preparatory cleanup and refactoring which includes (but is not limited to..) - Creating a FontManager delegating class that is called upon when renderers are setting up fonts - A new FontCollection interface and concrete implementing classes to supercede the static FontSetup mechanism. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@653826 13f79535-47bb-0310-9956-ffa450edef68
* Now tunneling all events through a special event listener in tests. This ↵Jeremias Maerki2008-04-172-19/+31
| | | | | | | | | serves two purposes: - Better readability of the test output. - Identification of messages that are not sent through the event subsystem, yet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@649160 13f79535-47bb-0310-9956-ffa450edef68
* Make the fop.layoutengine.disabled property work with ↵Vincent Hennebert2007-04-171-0/+1
| | | | | | fop.layoutengine.starts-with git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@529667 13f79535-47bb-0310-9956-ffa450edef68
* Changed license headers and updated NOTICE file according to: ↵Jeremias Maerki2006-07-289-45/+54
| | | | | | http://www.apache.org/legal/src-headers.html git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426576 13f79535-47bb-0310-9956-ffa450edef68
* Set a PrefixResolver for the "true" check, too, not only for "eval".Jeremias Maerki2006-06-082-14/+24
| | | | | | Added optional "tolerance" value for number comparisons using the "eval" check. Simplifies certain checks. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412732 13f79535-47bb-0310-9956-ffa450edef68
* Extended PageViewport to carry foreign attributes.Jeremias Maerki2006-05-181-1/+13
| | | | | | | | | | | | | Foreign attributes from simple-page-master are transferred to the PageViewport. Added foreign attributes handling in AreaTreeParser. Fixed proper generation of foreign attributes in XMLRenderer. EvalCheck extended so it can use namespace prefix mappings in its context. Test case for foreign attributes. Paper source/tray support for PCL (pcl:paper-source="<tray-code>" on s-p-m) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407541 13f79535-47bb-0310-9956-ffa450edef68
* Merged Temp_API_Finalization branch back into FOP Trunk:Jeremias Maerki2006-03-271-7/+10
| | | | | | | | | | | Finalized API according to the plan in the Wiki: http://wiki.apache.org/xmlgraphics-fop/ApiDesign In addition to that: Deprecated the rest of the Fop constructors. Refactored the FopServlet a bit to make it more versatile and still easy to understand. The FopPrintServlet is now a subclass of FopServlet. Some further cleanup on the way. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@389086 13f79535-47bb-0310-9956-ffa450edef68
* Added support for fixed-width spaces and kerning.Jeremias Maerki2006-03-161-4/+24
| | | | | | | | | | | | | | Note: letter-spacing is still implemented as before. Fixing this cannot be done without looking at space resolution as a whole on inline level. The Character area tree object is now deprecated. Normal Text objects should be used to keep renderers simpler. Introduced FontResolver interface to remove the dependency of FOUserAgent into the font package. Added kerning information to the base14 fonts, Helvetica and Times. By default it is not used to keep the status-quo. Enable base14 kerning through the FOUserAgent (FopFactory after the API finalization). Restored the production of EPS images in PDF output as PostScript XObjects. Restored functionality for a more compact format for the area tree renderer to save space. LayoutEngineTester slightly changed to allow for configuration values from the XML file. For now, only enabling base14 kerning is supported. Removed duplicate offset variable in SpaceArea. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386327 13f79535-47bb-0310-9956-ffa450edef68
* TransformerHandler changed to ContentHandler to allow easier integration of ↵Chris Bowditch2006-01-271-1/+1
| | | | | | XML Renderer to a SAX Events chain git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372915 13f79535-47bb-0310-9956-ffa450edef68
* New feature: "Intermediate format" (IF). The IF is basically the XML dialect ↵Jeremias Maerki2006-01-171-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | written by the area tree renderer (XMLRenderer). A new parser for this format allows reparsing a serialized and possibly modified area tree and rendering it to the final target format. More details on the Wiki at http://wiki.apache.org/xmlgraphics-fop/AreaTreeIntermediateXml. No advanced features have been implemented, yet, only the basic functionality. The whole change should be fully backwards-compatible WRT the outer FOP API except maybe for FOTreeBuilder.addElementMapping(), and the area tree XML which got small changes. The area tree has been cleaned up. The serializability has been restored. The CachedRenderPagesModel works again and can, in certain situations, decrease the maximum amount of memory held at one point in time. Some adjustments were necessary in the area tree to help the work of the AreaTreeParser. The AreaTreeParser is new and is responsible for parsing area tree XML files and adding pages to a RenderPagesModel instance. It is SAX-based and should be pretty efficient. XMLUnit (http://xmlunit.sourceforge.net, BSD license) is a new dependency for the test code. It is used to verify the correctness of the intermediate format code. It doesn't have to be installed for the build to run through, though. ElementMapping got a new method getDOMImplementation() which provides the DOMImplementation used to handle a subdocument of a particular namespace. For example, SVG uses Batik's SVG DOM. The AreaTreeParser needs that to properly recreate foreign objects because it can't use the mechanism of the FO tree. The default implementation returns null. The ElementMapping instances are no longer maintained by the FOTreeBuilder, but by the newly created ElementMappingRegistry class. It is expected that the instance of this class is moved from the FOTreeBuilder and the AreaTreeParser's Handler class to the "environment class" once it is created to cut down on the startup time for each processed document. The XMLRenderer has been slightly modified to improve the serialization/deserialization qualities of the area tree XML format. The XMLRenderer can now mimic another renderer (see mimicRenderer(Renderer)) in order to use its font setup. That way it is made certain that the reparsed area tree will render to the final target format exactly as expected. Fixed a bug in the XMLHandlerRegistry which did not always return the right XMLHandler for every situation. Added a DefaultErrorListener to the util package. I've had problems with Xalan-J swallowing exceptions with its default ErrorListener, so I added a simple one for convenience and use in AreaTreeParser. Example code for working with the AreaTreeParser can be found in examples/embedding. Documentation will follow. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369753 13f79535-47bb-0310-9956-ffa450edef68
* Create a new check type for the formatting results. For now onlySimon Pepping2006-01-083-5/+98
| | | | | | | checking the pagecount property is implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367019 13f79535-47bb-0310-9956-ffa450edef68
* Added license header to disabled testcases XML file. Removed obsolete files ↵Joerg Pietschmann2005-11-201-12/+0
| | | | | | and code. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@345785 13f79535-47bb-0310-9956-ffa450edef68
* JDK 1.3 compatibility. Jeremias Maerki2005-11-181-17/+21
| | | | | | Style fixes. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@345551 13f79535-47bb-0310-9956-ffa450edef68
* XMLified files describing disabled testcases for layout engine and FO treeJoerg Pietschmann2005-11-181-1/+67
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@345474 13f79535-47bb-0310-9956-ffa450edef68
* Deprecated constructors Fop(int) and Fop(int, FOUserAgent).Jeremias Maerki2005-11-121-2/+2
| | | | | | | | Deprecated Fop.getVersion() in favor for Version.getVersion(). Changed every place the newly deprecated methods were called. Ant task and TestConverter changed to fully use MIME types. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332791 13f79535-47bb-0310-9956-ffa450edef68
* Separated JUnit layout tests such that the majority are still run even if no ↵Manuel Mall2005-11-101-1/+5
| | | | | | hyphenation support present git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332292 13f79535-47bb-0310-9956-ffa450edef68
* Enable stretch and shrink checking on glues.Jeremias Maerki2005-10-131-1/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@320822 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36379:Finn Bock2005-08-311-0/+1
| | | | | | | | | | | | Revised percentage resolution system. Submitted by: Manuel Mall <mm.at.arcus.com.au> Slightly modified to avoid early evaluation of getValue(). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265577 13f79535-47bb-0310-9956-ffa450edef68
* Background trait's toString() streamlined. Test cases adjusted accordingly. Jeremias Maerki2005-08-291-0/+3
| | | | | | | Test cases without checks will fail from now on!!! Checks for certain test cases and the others are added to the disabled list. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264120 13f79535-47bb-0310-9956-ffa450edef68
* Some general housekeeping. No functional changes.Jeremias Maerki2005-08-101-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231325 13f79535-47bb-0310-9956-ffa450edef68
* Support checking for the auxiliary flag on boxes.Jeremias Maerki2005-08-101-0/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231240 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
* 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-238-39/+421
| | | | | | | | | | 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
* -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