From 54d297afea37ddc051cc43d26b919e2a95fbc815 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Fri, 30 Dec 2005 00:18:57 +0000 Subject: Tweak page-break-* shorthands; keeps now working properly git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359939 13f79535-47bb-0310-9956-ffa450edef68 --- test/java/org/apache/fop/fotreetest/ext/AssertElement.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/java/org/apache/fop/fotreetest/ext') diff --git a/test/java/org/apache/fop/fotreetest/ext/AssertElement.java b/test/java/org/apache/fop/fotreetest/ext/AssertElement.java index 0dfb4d41b..0a40b7604 100644 --- a/test/java/org/apache/fop/fotreetest/ext/AssertElement.java +++ b/test/java/org/apache/fop/fotreetest/ext/AssertElement.java @@ -23,6 +23,7 @@ import org.apache.fop.apps.FOPException; import org.apache.fop.fo.FONode; import org.apache.fop.fo.FOPropertyMapping; import org.apache.fop.fo.PropertyList; +import org.apache.fop.fo.properties.KeepProperty; import org.apache.fop.fo.properties.LengthPairProperty; import org.apache.fop.fo.properties.LengthRangeProperty; import org.apache.fop.fo.properties.Property; @@ -79,6 +80,10 @@ public class AssertElement extends TestObj { if (lrp != null) { prop = lrp.getComponent(FOPropertyMapping.getSubPropertyId(component)); } + KeepProperty kp = mainProp.getKeep(); + if (kp != null) { + prop = kp.getComponent(FOPropertyMapping.getSubPropertyId(component)); + } } String s = String.valueOf(prop); String expected = attlist.getValue("expected"); -- cgit v1.2.3