Jeremias Maerki writes:
> I'll have to take a closer look. I know there are still a few problems
> left (I've been working in this area lately). The first step is to
> create small test cases [1] to cover all the different possibilities.
There is one related testcase - external-graphic-svg.xml. Running
that (ant junit) produces the following output:
------------- ---------------- ---------------
Testcase:
external-graphic-svg.xml(org.apache.fop.layoutengine.LayoutEngineTestSuite$1):
Caused an ERROR
Expected XPath expression to evaluate to '100000', but got '' (XPath:
//flow/block[2]/lineArea/viewport/@ipd)
java.lang.RuntimeException: Expected XPath expression to evaluate to '100000',
but got '' (XPath: //flow/block[2]/lineArea/viewport/@ipd)
at org.apache.fop.layoutengine.EvalCheck.check(EvalCheck.java:64)
at
org.apache.fop.layoutengine.LayoutEngineTester.checkAll(LayoutEngineTester.java:198)
at
org.apache.fop.layoutengine.LayoutEngineTester.runTest(LayoutEngineTester.java:145)
at
org.apache.fop.layoutengine.LayoutEngineTestSuite$LayoutEngineTestCase.testMain(LayoutEngineTestSuite.java:143)
at
org.apache.fop.layoutengine.LayoutEngineTestSuite$1.runTest(LayoutEngineTestSuite.java:122)
> Once we have that we can define the expectations and fix the problems.
> That way we can also avoid regressions in the future.
>
> Can you help with that?
Probably, but not today. I'd prefer to wait until I can get the junit
target to work correctly. It might also be worth waiting until the
work with percentages is completed, since these seem completely broken
in this situation.
Richard