diff options
Diffstat (limited to 'test/java/org/apache/fop/layoutengine/TrueCheck.java')
-rw-r--r-- | test/java/org/apache/fop/layoutengine/TrueCheck.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/java/org/apache/fop/layoutengine/TrueCheck.java b/test/java/org/apache/fop/layoutengine/TrueCheck.java index 68a791503..8ecaf9b0b 100644 --- a/test/java/org/apache/fop/layoutengine/TrueCheck.java +++ b/test/java/org/apache/fop/layoutengine/TrueCheck.java @@ -23,7 +23,6 @@ import javax.xml.transform.TransformerException; import org.apache.xpath.XPathAPI; import org.apache.xpath.objects.XBoolean; import org.apache.xpath.objects.XObject; -import org.w3c.dom.Document; import org.w3c.dom.Node; /** @@ -49,13 +48,11 @@ public class TrueCheck implements LayoutEngineCheck { this.xpath = node.getAttributes().getNamedItem("xpath").getNodeValue(); } - /** - * @see org.apache.fop.layoutengine.LayoutEngineCheck#check(org.w3c.dom.Document) - */ - public void check(Document doc) { + /** @see org.apache.fop.layoutengine.LayoutEngineCheck */ + public void check(LayoutResult result) { XObject res; try { - res = XPathAPI.eval(doc, xpath); + res = XPathAPI.eval(result.getAreaTree(), xpath); } catch (TransformerException e) { throw new RuntimeException("XPath evaluation failed: " + e.getMessage()); } |