Chris, On Thu, 4 Aug 2005 10:59 pm, Chris Bowditch wrote: > Manuel Mall wrote: > > Chris, > > Hi Manuel, > ... > > The checks are actually against the Area Tree Output. You can > generate it and see what it looks like for any fo by running the > following command line: > > fop foo.fo -at foo.xml > OK, got that.
> There are 2 basic checks you can do (I could be wrong; I'm not the > expect here): > > 1) <true> check, useful for checking the presence/absence of an > element or attribute in this XML output. It has a single attribute > xpath="" which is just an xpath expression which can select a node in > the XML output. > > 2) <eval> check, which grabs the value of a attribute specified by > the xpath attribute and checks it matches the expected value > specified in the expected attribute. > > As an example I added some checks to your font-size tests to see that > a medium font was in fact 12pt. Internally all FOP's measurements are > in milli-pt, so the check actually looks for the value "12000" > > I hope this gives you the basic idea, Thanks that's great I think I understand. Last (is there ever?) question: How can I run a testcase and test my <checks>...</checks> section? Do I have to somehow invoke Jeremias LayoutEngineTestSuite? And if so what's the best way to do that? Thanks for your help Manuel > > Chris