diff options
-rw-r--r-- | fop-core/src/test/java/org/apache/fop/events/EventProcessingTestCase.java | 6 | ||||
-rw-r--r-- | fop/test/events/bookmarks.fo | 21 |
2 files changed, 27 insertions, 0 deletions
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 @@ -112,6 +112,12 @@ public class EventProcessingTestCase { } @Test + public void testBookmarks() throws Exception { + doTest("bookmarks.fo", + AreaEventProducer.class.getName() + ".unresolvedIDReference"); + } + + @Test public void testResource() throws Exception { doTest("resource.fo", ResourceEventProducer.class.getName() + ".imageNotFound"); 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <fo:layout-master-set> + <fo:simple-page-master page-width="8.5in" page-height="11in" master-name="Page"> + <fo:region-body region-name="Body"/> + </fo:simple-page-master> + <fo:page-sequence-master master-name="PageSequence"> + <fo:repeatable-page-master-reference master-reference="Page"/> + </fo:page-sequence-master> + </fo:layout-master-set> + <fo:bookmark-tree> + <fo:bookmark internal-destination="B1"> + <fo:bookmark-title>w</fo:bookmark-title> + </fo:bookmark> + </fo:bookmark-tree> + <fo:page-sequence format="1" id="TH_LastPage" initial-page-number="auto" force-page-count="auto" master-reference="PageSequence"> + <fo:flow flow-name="Body"> + <fo:block>a</fo:block> + </fo:flow> + </fo:page-sequence> +</fo:root>
\ No newline at end of file |