aboutsummaryrefslogtreecommitdiffstats
path: root/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'test/java')
-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");