]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Support checking for the subcomponents of length-range properties in the FO Tree...
authorJeremias Maerki <jeremias@apache.org>
Tue, 29 Nov 2005 15:53:20 +0000 (15:53 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 29 Nov 2005 15:53:20 +0000 (15:53 +0000)
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

index 3f4fcceda573357a1b6ad6a6d14d8c6921538966..0dfb4d41b20af81cb56ea62794e0502d2626ec8a 100644 (file)
@@ -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");