aboutsummaryrefslogtreecommitdiffstats
path: root/fop
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2022-12-08 13:04:53 +0000
committerSimon Steiner <ssteiner@apache.org>2022-12-08 13:04:53 +0000
commit1317b5529ca1435fc3f3ecb89b32f8fc237975a5 (patch)
tree6217ef1b85f09c550eb2314669a36b1bd2d98c76 /fop
parentdb0954faeb724fa9168557f6551d4658a6cee699 (diff)
downloadxmlgraphics-fop-1317b5529ca1435fc3f3ecb89b32f8fc237975a5.tar.gz
xmlgraphics-fop-1317b5529ca1435fc3f3ecb89b32f8fc237975a5.zip
FOP-3110: NPE if link destination is missing with accessibility
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1905858 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop')
-rw-r--r--fop/test/intermediate/basic-link_internal-desination-missing.xml52
1 files changed, 52 insertions, 0 deletions
diff --git a/fop/test/intermediate/basic-link_internal-desination-missing.xml b/fop/test/intermediate/basic-link_internal-desination-missing.xml
new file mode 100644
index 000000000..7b089037b
--- /dev/null
+++ b/fop/test/intermediate/basic-link_internal-desination-missing.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Id$ -->
+<testcase>
+ <info>
+ <p>
+ This test checks a fo:basic-link in a span
+ </p>
+ </info>
+ <cfg>
+ <accessibility>true</accessibility>
+ </cfg>
+ <fo>
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
+ <fo:layout-master-set>
+ <fo:simple-page-master margin-top="0.3in" master-name="MBABase" page-width="8.5in" page-height="11in">
+ <fo:region-body region-name="LetterBody"/>
+ </fo:simple-page-master>
+ <fo:page-sequence-master master-name="MBALetterPages">
+ <fo:repeatable-page-master-alternatives>
+ <fo:conditional-page-master-reference master-reference="MBABase"/>
+ </fo:repeatable-page-master-alternatives>
+ </fo:page-sequence-master>
+ </fo:layout-master-set>
+ <fo:page-sequence format="1" id="th_default_sequence5" initial-page-number="auto" master-reference="MBALetterPages">
+ <fo:flow flow-name="LetterBody">
+ <fo:block>
+ <fo:basic-link internal-destination="Section1">SECTION 1 Introduction</fo:basic-link>
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <if-checks xmlns:nav="http://xmlgraphics.apache.org/fop/intermediate/document-navigation">
+ <eval expected="-1" xpath="//nav:link/nav:goto-xy/@page-index"/>
+ </if-checks>
+</testcase>