From 9f9654fff94daf2c931c0fff6b3fadcdcdd565ec Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 10 Aug 2005 14:05:27 +0000 Subject: 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 --- test/java/org/apache/fop/layoutengine/ElementListCheck.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/java/org') 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 " -- cgit v1.2.3