diff options
Diffstat (limited to 'test/java/org')
-rw-r--r-- | test/java/org/apache/fop/layoutengine/ElementListCheck.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/java/org/apache/fop/layoutengine/ElementListCheck.java b/test/java/org/apache/fop/layoutengine/ElementListCheck.java index 3dba23ff0..bf6cc0fdb 100644 --- a/test/java/org/apache/fop/layoutengine/ElementListCheck.java +++ b/test/java/org/apache/fop/layoutengine/ElementListCheck.java @@ -88,6 +88,18 @@ public class ElementListCheck implements LayoutEngineCheck { + " but got: " + knuthEl.getW()); } } + if ("true".equals(domEl.getAttribute("aux"))) { + if (!knuthEl.isAuxiliary()) { + fail("Expected auxiliary box" + + " at position " + pos); + } + } + if ("false".equals(domEl.getAttribute("aux"))) { + if (knuthEl.isAuxiliary()) { + fail("Expected a normal, not an auxiliary box" + + " at position " + pos); + } + } } else if ("penalty".equals(domEl.getLocalName())) { if (!(knuthEl instanceof KnuthPenalty)) { fail("Expected KnuthPenalty " |