From: Simon Steiner Date: Tue, 5 May 2020 07:43:58 +0000 (+0000) Subject: Test bookmarks pointing to a non-existing internal destination should just trigger... X-Git-Tag: fop-2_5~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ccd1b149a719ce315ffe885fc153fce25d139fd5;p=xmlgraphics-fop.git Test bookmarks pointing to a non-existing internal destination should just trigger a warning git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1877370 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/fop-core/src/test/java/org/apache/fop/events/EventProcessingTestCase.java b/fop-core/src/test/java/org/apache/fop/events/EventProcessingTestCase.java index 4f87cca20..66ec43193 100644 --- a/fop-core/src/test/java/org/apache/fop/events/EventProcessingTestCase.java +++ b/fop-core/src/test/java/org/apache/fop/events/EventProcessingTestCase.java @@ -111,6 +111,12 @@ public class EventProcessingTestCase { AreaEventProducer.class.getName() + ".unresolvedIDReferenceOnPage"); } + @Test + public void testBookmarks() throws Exception { + doTest("bookmarks.fo", + AreaEventProducer.class.getName() + ".unresolvedIDReference"); + } + @Test public void testResource() throws Exception { doTest("resource.fo", diff --git a/fop/test/events/bookmarks.fo b/fop/test/events/bookmarks.fo new file mode 100644 index 000000000..568ea356e --- /dev/null +++ b/fop/test/events/bookmarks.fo @@ -0,0 +1,21 @@ + + + + + + + + + + + + + w + + + + + a + + + \ No newline at end of file