Debian Codegraph @

test_non_regression/svg/text-tref-01-b.svg

raw
1 <svg version="1.1" baseProfile="basic" 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="Lofton Henderson" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: text-tref-01-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#TRefElement">
17 <p>
18 Test viewer capability to handle a basic 'tref' element
19 which points to a text string in an external file.
20 </p>
21 <p>
22 The test case consists of a single sub-test.
23 </p>
24 </d:testDescription>
25 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
26 <p>
27 Run the test. No interaction required.
28 </p>
29 </d:operatorScript>
30 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
31 <p>
32 The box in the middle of the frame should
33 contain green "Simple external referenced text.",
34 which is obtained by a 'tref' element reference to a 'text' element in a 'defs'
35 section of another file (text-extTref-BE-18-targ.svg).
36 </p>
37 </d:passCriteria>
38 </d:SVGTestCase>
39 <title id="test-title">$RCSfile: text-tref-01-b.svg,v $</title>
40 <defs>
41 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
42 <font-face-src>
43 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
44 </font-face-src>
45 </font-face>
46 </defs>
47 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
48 <!-- Test case label -->
49 <text x="75" y="25" font-size="12" fill="blue">Test 'tref' element with an external referenced string.</text>
50 <!-- External tref reference, to another file -->
51 <text x="75" y="200" font-size="18" fill="green">
52 <tref xlink:href="../images/text-extTref-BE-18-targ.svg#tref-external-reference"/>
53 </text>
54 <rect x="73" y="183" width="260" height="22" fill="none" stroke="black"/>
55 <text x="73" y="217" font-size="12" fill="black">'tref' to a string in another file</text>
56 <!-- Patch code -->
57 <!--
58 <text x="75" y="200" font-size="18" fill="green" >
59 Simple external referenced text.
60 </text>
61 -->
62 </g>
63 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
64 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
65 </g>
66 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
67 <!-- comment out this watermark once the test is approved -->
68 <!--<g id="draft-watermark">
69 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
70 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
71 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
72 </g>-->
73 </svg>