aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org
Commit message (Collapse)AuthorAgeFilesLines
...
* Updated from Jakarta Commons IO 1.0 to 1.1. CopyUtils.copy() becomes ↵Jeremias Maerki2005-11-141-8/+3
| | | | | | | | | IOUtils.copy() again. CopyUtils in 1.0 was not ideal design decision. Fixed most of the unappropriate System.err/System.out/Exception.printStackTrace(). Those that aren't fixed and are not legitimate calls (in main() methods etc.) are marked with a TODO item. Some Javadocs and style updates. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344111 13f79535-47bb-0310-9956-ffa450edef68
* Deprecated constructors Fop(int) and Fop(int, FOUserAgent).Jeremias Maerki2005-11-1210-22/+26
| | | | | | | | 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
* Minor corrections for jdk 1.3.1 compatibilityManuel Mall2005-11-111-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332584 13f79535-47bb-0310-9956-ffa450edef68
* Made the FO tree a little more consistent by renaming getName() to ↵Jeremias Maerki2005-11-113-13/+10
| | | | | | getLocalName() and adding additional methods like: getNamespaceURI() and getNormalNamespacePrefix(). getName() now returns the fully qualified name combined from getLocalName() and getNormalNamespacePrefix(). For special cases you can call getName(String) to return a different namespace prefix. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332545 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
* Merged work on Temp_SpaceResolution branch into trunk (-r 320826:327988).Jeremias Maerki2005-10-242-5/+22
| | | | | | Source: http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_SpaceResolution/ git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328010 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
* Test case for showing a problem with the Knuth algorithm.Jeremias Maerki2005-10-051-0/+142
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@295059 13f79535-47bb-0310-9956-ffa450edef68
* Added line-/column-number output for easier tracing of errorsAndreas L. Delmelle2005-09-141-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280971 13f79535-47bb-0310-9956-ffa450edef68
* Run the checks on the parent's propertyList.Finn Bock2005-09-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280608 13f79535-47bb-0310-9956-ffa450edef68
* Enabled fotree junit tests.Finn Bock2005-09-123-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280298 13f79535-47bb-0310-9956-ffa450edef68
* PDFNumber.doubleOut() rewritten using java.text.DecimalFormat. Jeremias Maerki2005-09-012-0/+115
| | | | | | | This fixes a bug of doubleOut() not recognizing the scientific format sometimes returned by Double.toString(double). This change may result in slightly different value being written to the PDF stream. The former doubleOut contained specific code to do special rounding where the new method using DecimalFormat implicitly uses the BigDecimal.ROUND_HALF_EVEN strategy when rounding. These different values hopefully won't make a big visual difference. They don't in my tests. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265688 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
* Initial commit for a FO tree testing facility.Jeremias Maerki2005-08-307-0/+473
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264709 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
* Two new config values: stop-on-exception and create-diffs.Jeremias Maerki2005-08-261-21/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240253 13f79535-47bb-0310-9956-ffa450edef68
* After chasing a phantom for hours, it looks like it's simply the big images ↵Jeremias Maerki2005-08-251-0/+5
| | | | | | | | being generated that eat over 90% of the memory and at some point cause an OutOfMemoryError. Releasing the bitmaps a little sooner now which helps a little. "-Xmx256m" is still a good idea for BatchDiffer. Haven't found any memory leaks inside FOP, since I fixed the image cache. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240079 13f79535-47bb-0310-9956-ffa450edef68
* Moved CLI to its own package. New main class is org.apache.fop.cli.Main. Jeremias Maerki2005-08-231-1/+1
| | | | | | InputHandler is not passed through the FOUserAgent anymore. IMO it doesn't belong there. Instead I defined an interface "Renderable" in the AWT preview that InputHandler implements. This is used exclusively for reloading the document inside the preview dialog. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239409 13f79535-47bb-0310-9956-ffa450edef68
* I want to work while this is running. :-)Jeremias Maerki2005-08-211-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234189 13f79535-47bb-0310-9956-ffa450edef68
* Add a method to clear all image caches for testing purposes. It shouldn't be ↵Jeremias Maerki2005-08-161-5/+36
| | | | | | | | necessary anymore to call such a method in a production environment or we have a problem with the image cache. Testing SystemID resolution as well as StreamSource with an InputStream. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232952 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36082 Jeremias Maerki2005-08-161-11/+9
| | | | | | | Renamed FOUserAgent.getStream() to FOUserAgent.resolveURI() which now simply returns a Source instance which the ImageFactory uses to get at an InputStream somehow. Submitted by: Manuel Mall <mm.at.arcus.com.au> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232949 13f79535-47bb-0310-9956-ffa450edef68
* Aaargh. Imports again.Jeremias Maerki2005-08-151-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232789 13f79535-47bb-0310-9956-ffa450edef68
* JUnit Test cases to test URI resolution using custom URIResolvers. They are ↵Jeremias Maerki2005-08-151-0/+209
| | | | | | not yet integrated into the test suite as the second test fails and the first test needs some changes in the code (see TODO). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232788 13f79535-47bb-0310-9956-ffa450edef68
* Initial upload of the visual testing facility. Docs in code. A Wiki page ↵Jeremias Maerki2005-08-1214-0/+1301
| | | | | | will follow shortly. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232300 13f79535-47bb-0310-9956-ffa450edef68
* Merged branch ↵Jeremias Maerki2005-08-121-0/+4
| | | | | | | | | | | | | https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/inlineblock back into Trunk. Revisions: 227462 to HEAD (231261) This adds support for block-level content inside fo:inline. The full set of changes on the branch can be extracted by: svn log http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/inlineblock -r 227462:231261 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232250 13f79535-47bb-0310-9956-ffa450edef68
* Some general housekeeping. No functional changes.Jeremias Maerki2005-08-1012-42/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231325 13f79535-47bb-0310-9956-ffa450edef68
* Removed DOM-related tests as discussed. We don't want to test the buggy ↵Jeremias Maerki2005-08-101-35/+1
| | | | | | innards of Xalan-J. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231263 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
* Forgot to commit a changed file. Straggler from the RTF library clean-up.Jeremias Maerki2005-08-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231221 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