0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
|
|
3 |
<!--======================================================================-->
|
|
4 |
<!--= Copyright 2002 World Wide Web Consortium, (Massachusetts =-->
|
|
5 |
<!--= Institute of Technology, Institut National de Recherche en =-->
|
|
6 |
<!--= Informatique et en Automatique, Keio University). All Rights =-->
|
|
7 |
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
|
|
8 |
<!--======================================================================-->
|
|
9 |
<!-- ===================================================================== -->
|
|
10 |
<!-- linking-uri-03-t.svg -->
|
|
11 |
<!-- Notes. This is based on sample file from SVG spec. Requires -->
|
|
12 |
<!-- Requires supplemental file, linkingToc-t.svg. -->
|
|
13 |
<!-- Author : Lee Klosterman 31-January-2002 -->
|
|
14 |
<!--======================================================================-->
|
|
15 |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" baseProfile="tiny" width="100%" height="100%" viewBox="0 0 480 360">
|
|
16 |
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
|
|
17 |
<OperatorScript version="$Revision: 1.8 $" testname="linking-uri-03-t.svg">
|
|
18 |
<Paragraph>
|
|
19 |
Verify the handling of the allowable xlink attributes on the 'a' element.
|
|
20 |
The initial view of this test contains a single green triangle, labelling text,
|
|
21 |
and the usual template legend and frame.
|
|
22 |
</Paragraph>
|
|
23 |
<Paragraph>
|
|
24 |
There is a link on the triangle, pointing to an external SVG file, which is
|
|
25 |
local (in the same directory). The target file contains SVG 'text' elements
|
|
26 |
which comprise a TOC and brief description of all of the BE test files
|
|
27 |
for Linking. Upon clicking the triangle, the image of the linkingToc-t.svg
|
|
28 |
file should replace the initial view of this test case in the viewer frame.
|
|
29 |
</Paragraph>
|
|
30 |
<Paragraph>
|
|
31 |
The purpose of the test is to
|
|
32 |
verify that viewers tolerate the presence of xlink attributes on the 'a'
|
|
33 |
element. The presence of the attributes should not change the behavior of
|
|
34 |
the test in any way. The results of executing the link should be identical
|
|
35 |
to executing the first (topmost) link of linking-a-01-f.
|
|
36 |
</Paragraph>
|
|
37 |
<Paragraph>
|
|
38 |
There are two reference images associated with this test case. The first
|
|
39 |
illustrates the correct "start" or initial state of the rendered SVG file.
|
|
40 |
The second illustrates the correct image after the link is activated
|
|
41 |
(to the linkingToc-t.svg file). (Note. This harness does not yet
|
|
42 |
provide access to multiple PNGs; the first, initial-state PNG is shown.)
|
|
43 |
</Paragraph>
|
|
44 |
<Paragraph>
|
|
45 |
The test uses the 'rect' element, as well as basic fill (solid simple colors),
|
|
46 |
stroke (black and colored wide and 1-pixel lines), font-family (Arial) and font-size properties.
|
|
47 |
</Paragraph>
|
|
48 |
</OperatorScript>
|
|
49 |
</SVGTestCase>
|
|
50 |
<title id="test-title">linking-uri-03-t</title>
|
|
51 |
<desc id="test-desc">Verify xlink attributes on the 'a' element.</desc>
|
|
52 |
<!--======================================================================-->
|
|
53 |
<!--Content of Test Case follows... =====================-->
|
|
54 |
<!--======================================================================-->
|
|
55 |
<g id="test-body-content">
|
|
56 |
<text x="75" y="16" font-size="12">Simple exercise of xlink attributes on the 'a' element.</text>
|
|
57 |
<a xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" xlink:href="images/linkingToc-t.svg" xlink:role="figure-out-a-role-value-and-associated-xmlns" xlink:title="TOC of Linking BE tests." target="_self">
|
|
58 |
<path d="M 135 122 l 130 0 l -65 130 z" fill="lime" stroke="blue"/>
|
|
59 |
</a>
|
|
60 |
<text x="160" y="116" font-size="12">Click for TOC</text>
|
|
61 |
<text x="25" y="172" font-size="12">Link to local file</text>
|
|
62 |
<text x="25" y="182" font-size="12">linkingToc-t.svg.</text>
|
|
63 |
<rect x="19" y="160" width="100" height="26" fill="none" stroke="black"/>
|
|
64 |
<text x="275" y="144" font-size="10">xlink:type="simple"</text>
|
|
65 |
<text x="275" y="155" font-size="10">xlink:show="replace"</text>
|
|
66 |
<text x="275" y="166" font-size="10">xlink:actuate="onRequest"</text>
|
|
67 |
<text x="275" y="177" font-size="10">xlink:href="linkingToc-t.svg"</text>
|
|
68 |
<text x="275" y="188" font-size="10">xlink:role="figure-out-a-role"</text>
|
|
69 |
<text x="275" y="199" font-size="10">xlink:title="TOC of Linking BE tests."</text>
|
|
70 |
<text x="275" y="210" font-size="10">target="_self"</text>
|
|
71 |
</g>
|
|
72 |
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
|
|
73 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
|
|
74 |
</svg>
|