blob: 147b51ee850c7cc8da4fea5b915fc457e7f6c3cf [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
<!--======================================================================-->
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, Institut National de Recherche en =-->
<!--= Informatique et en Automatique, Keio University). All Rights =-->
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<!-- ===================================================================== -->
<!-- -->
<!-- text-extTref-BE-18.svg -->
<!-- renamed for 1.1 suite to text-tref-01-b.svg -->
<!-- -->
<!-- Test capability to handle 'tref' to external text strings. -->
<!-- -->
<!-- Note. This test uses text-tref-BE-18-targ.svg as its target file for -->
<!-- the external references. -->
<!-- -->
<!-- Author : Lofton Henderson, 24-Oct-2000. -->
<!-- 1.1 revision by Rick Graham -->
<!-- Revised for SVGT/B : Mathias Larsson Carlander Jul/1/2002 -->
<!-- -->
<!-- History: -->
<!-- 24-Oct-2000, LH: Serial#1 created. -->
<!-- 27-Oct-2000, LH=" completely revise and simplify" ser#2. -->
<!-- -->
<!-- ===================================================================== -->
<!--======================================================================-->
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
<!--======================================================================-->
<svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<OperatorScript version="$Revision: 1.6 $" testname="text-tref-01-b.svg">
<Paragraph>
Test viewer capability to handle a basic 'tref' element
which points to a text string in an external file.
</Paragraph>
<Paragraph>
The test case consists of a single sub-test.
The box in the middle of the frame should
contain green "Simple external referenced text.",
which is obtained by a 'tref' element reference to a 'text' element in a 'defs'
section of another file (text-extTref-BE-18-targ.svg).
</Paragraph>
<Paragraph>
The rendered picture should match the reference image, except for possible
variations in the text fonts and layout (per CSS2 rules).
</Paragraph>
<Paragraph>
The test also uses the 'rect' element,
as well as basic fill (solid primary colors),
stroke (black 1-pixel lines), font-family (Arial)
and font-size properties.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">text-tref-01-b.svg</title>
<desc id="test-desc">Test 'tref' element with an external referenced string.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<!-- Test case label -->
<text x="75" y="25" font-family="Arial" font-size="12" fill="blue">Test 'tref' element with an external referenced string.</text>
<!-- External tref reference, to another file -->
<text x="75" y="200" font-size="18" font-family="Arial" fill="green">
<tref xlink:href="resources/text-extTref-BE-18-targ.svg#tref-external-reference"/>
</text>
<rect x="73" y="183" width="260" height="22" fill="none" stroke="black"/>
<text x="73" y="217" font-family="Arial" font-size="12" fill="black">'tref' to a string in another file</text>
<!-- Patch code -->
<!--
<text x="75" y="200" font-size="18" font-family="Arial" fill="green" >
Simple external referenced text.
</text>
-->
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.6 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>