aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/fotreetest/ext
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2005-12-30 00:18:57 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2005-12-30 00:18:57 +0000
commit54d297afea37ddc051cc43d26b919e2a95fbc815 (patch)
treef28dc317cdf8b81039527412af76515a5096125c /test/java/org/apache/fop/fotreetest/ext
parent4c56038f69640db1f3afb96a966d58e9c273b3cf (diff)
downloadxmlgraphics-fop-54d297afea37ddc051cc43d26b919e2a95fbc815.tar.gz
xmlgraphics-fop-54d297afea37ddc051cc43d26b919e2a95fbc815.zip
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
Diffstat (limited to 'test/java/org/apache/fop/fotreetest/ext')
-rw-r--r--test/java/org/apache/fop/fotreetest/ext/AssertElement.java5
1 files changed, 5 insertions, 0 deletions
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");