Debian Codegraph @

test_non_regression/svg/linking-uri-03-t.svg

raw
1 <svg version="1.1" baseProfile="tiny" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="SVGWG" author="Lee Klosterman" status="accepted"
15 version="$Revision: 1.5 $" testname="$RCSfile: linking-uri-03-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/linking.html#LinksIntoSVG">
17 <p>
18 Verify the handling of the allowable xlink attributes on the 'a' element.
19 The initial view of this test contains a single green triangle, labelling text,
20 and the usual template legend and frame.
21 </p>
22 <p>
23 The purpose of the test is to
24 verify that viewers tolerate the presence of xlink attributes on the 'a'
25 element. The presence of the attributes should not change the behavior of
26 the test in any way.
27 </p>
28 <p>
29 There are two reference images associated with this test case. The first
30 illustrates the correct "start" or initial state of the rendered SVG file.
31 The second illustrates the correct image after the link is activated
32 (to the linkingToc-t.svg file). (Note. This harness does not yet
33 provide access to multiple PNGs; the first, initial-state PNG is shown.)
34 </p>
35 <p>
36 The test uses the 'rect' element, as well as basic fill (solid simple colors),
37 stroke (black and colored wide and 1-pixel lines), font-family (Arial) and font-size properties.
38 </p>
39 </d:testDescription>
40 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
41 <p>Click on the center green triangle.</p>
42 </d:operatorScript>
43 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
44 <p>
45 There is a link on the triangle, pointing to an external SVG file, which is
46 local (in the same directory). The target file contains SVG 'text' elements
47 which comprise a TOC and brief description of all of the BE test files
48 for Linking. Upon clicking the triangle, the image of the linkingToc-t.svg
49 file should replace the initial view of this test case in the viewer frame.
50 </p>
51 <p>
52 The results of executing the link should be identical
53 to executing the first (topmost) link of linking-a-04-t.
54 </p>
55 </d:passCriteria>
56 </d:SVGTestCase>
57 <title id="test-title">$RCSfile: linking-uri-03-t.svg,v $</title>
58 <defs>
59 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
60 <font-face-src>
61 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
62 </font-face-src>
63 </font-face>
64 </defs>
65 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
66 <text x="75" y="16" font-size="12">Simple exercise of xlink attributes on the 'a' element.</text>
67 <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">
68 <path d="M 135 122 l 130 0 l -65 130 z" fill="lime" stroke="blue"/>
69 </a>
70 <text x="160" y="116" font-size="12">Click for TOC</text>
71 <text x="25" y="172" font-size="12">Link to local file</text>
72 <text x="25" y="182" font-size="12">linkingToc-t.svg.</text>
73 <rect x="19" y="160" width="100" height="26" fill="none" stroke="black"/>
74 <text x="275" y="144" font-size="10">xlink:type="simple"</text>
75 <text x="275" y="155" font-size="10">xlink:show="replace"</text>
76 <text x="275" y="166" font-size="10">xlink:actuate="onRequest"</text>
77 <text x="275" y="177" font-size="10">xlink:href="linkingToc-t.svg"</text>
78 <text x="275" y="188" font-size="10">xlink:role="figure-out-a-role"</text>
79 <text x="275" y="199" font-size="10">xlink:title="TOC of Linking BE tests."</text>
80 <text x="275" y="210" font-size="10">target="_self"</text>
81 </g>
82 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
83 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
84 </g>
85 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
86 <!-- comment out this watermark once the test is approved -->
87 <!--<g id="draft-watermark">
88 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
89 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
90 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
91 </g>-->
92 </svg>