diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-10 14:05:27 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-10 14:05:27 +0000 |
commit | 9f9654fff94daf2c931c0fff6b3fadcdcdd565ec (patch) | |
tree | 7082dff981a27bcd81c4e7be541cf8caf3139188 /test/java/org | |
parent | 562ef0982e3ca18335092266a38e43711d782c2f (diff) | |
download | xmlgraphics-fop-9f9654fff94daf2c931c0fff6b3fadcdcdd565ec.tar.gz xmlgraphics-fop-9f9654fff94daf2c931c0fff6b3fadcdcdd565ec.zip |
Support checking for the auxiliary flag on boxes.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231240 13f79535-47bb-0310-9956-ffa450edef68
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 " |