aboutsummaryrefslogtreecommitdiffstats
path: root/fop/test/intermediate/basic-link_alttext.xml
diff options
context:
space:
mode:
Diffstat (limited to 'fop/test/intermediate/basic-link_alttext.xml')
-rw-r--r--fop/test/intermediate/basic-link_alttext.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/fop/test/intermediate/basic-link_alttext.xml b/fop/test/intermediate/basic-link_alttext.xml
new file mode 100644
index 000000000..2ae776db6
--- /dev/null
+++ b/fop/test/intermediate/basic-link_alttext.xml
@@ -0,0 +1,47 @@
+<?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 page-width="8.5in" page-height="11in" master-name="Page">
+ <fo:region-body region-name="Body"/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="Page">
+ <fo:flow flow-name="Body">
+ <fo:block>
+ <fo:basic-link external-destination="www.a.com" fox:alt-text="xxx">www.a.com</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="xxx" xpath="//nav:link/nav:goto-uri/@alt-text"/>
+ </if-checks>
+</testcase>