From 102e39aa942fc57dfd167e60292ef2983702290c Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 29 Nov 2005 15:53:20 +0000 Subject: [PATCH] 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 --- test/java/org/apache/fop/fotreetest/ext/AssertElement.java | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- 2.39.5