From: Jeremias Maerki Date: Tue, 29 Nov 2005 15:53:20 +0000 (+0000) Subject: Support checking for the subcomponents of length-range properties in the FO Tree... X-Git-Tag: fop-0_91-beta~69 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=102e39aa942fc57dfd167e60292ef2983702290c;p=xmlgraphics-fop.git Support checking for the subcomponents of length-range properties in the FO Tree tests. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349742 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/java/org/apache/fop/fotreetest/ext/AssertElement.java b/test/java/org/apache/fop/fotreetest/ext/AssertElement.java index 3f4fcceda..0dfb4d41b 100644 --- a/test/java/org/apache/fop/fotreetest/ext/AssertElement.java +++ b/test/java/org/apache/fop/fotreetest/ext/AssertElement.java @@ -24,6 +24,7 @@ import org.apache.fop.fo.FONode; import org.apache.fop.fo.FOPropertyMapping; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.properties.LengthPairProperty; +import org.apache.fop.fo.properties.LengthRangeProperty; import org.apache.fop.fo.properties.Property; import org.apache.fop.fotreetest.ResultCollector; @@ -74,6 +75,10 @@ public class AssertElement extends TestObj { if (lpp != null) { prop = lpp.getComponent(FOPropertyMapping.getSubPropertyId(component)); } + LengthRangeProperty lrp = mainProp.getLengthRange(); + if (lrp != null) { + prop = lrp.getComponent(FOPropertyMapping.getSubPropertyId(component)); + } } String s = String.valueOf(prop); String expected = attlist.getValue("expected");