From ccd1b149a719ce315ffe885fc153fce25d139fd5 Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Tue, 5 May 2020 07:43:58 +0000 Subject: 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 --- .../apache/fop/events/EventProcessingTestCase.java | 6 ++++++ fop/test/events/bookmarks.fo | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 fop/test/events/bookmarks.fo 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 -- cgit v1.2.3