blob: c14729bfb2cf04328dfe0088299a2890bff7f7d0 [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-selection-BE-13.svg -->
<!-- renamed for 1.1 suite to text-tselect-01-b.svg -->
<!-- -->
<!-- Test single line and multiline text selection. -->
<!-- -->
<!-- Author : Jon Ferraiolo 06-Aug-2000 -->
<!-- 1.1 revision by Rick Graham -->
<!-- -->
<!-- History: -->
<!-- 06-Aug-2000, JF: Serial#1 created. -->
<!-- -->
<!-- ===================================================================== -->
<!--======================================================================-->
<!--= 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.8 $" testname="text-tselect-01-b.svg">
<Paragraph>
Test text selection.
</Paragraph>
<Paragraph>
As the text describes, text selection should be constrained within
a single line of text for the first four lines. But in the second
four lines, text selection should span across lines. Thus, it should
be possible to start text selection at the start of the "However"
and drag through the end of "same time." and the all four lines
should be selected.
</Paragraph>
<Paragraph>
For basic viewers conformant acion is as described above if there
is a text selection mechanism. Since text selection is optional
on a basic device if text selection is not implemented then this
test is a pass, move on to the next test.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">text-tselect-01-b.svg</title>
<desc id="test-desc">Test single line and multiline text selection.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<text font-family="Arial" font-size="16" x="10" y="20">Test single line and multiline text selection.</text>
<g font-family="Arial" font-size="16" >
<text x="25" y="65">Here is a stand-alone 'text' element.</text>
<text x="25" y="90">Here is a second 'text' element just below.</text>
<text x="25" y="115">Because these are four separate 'text' elements,</text>
<text x="25" y="140">text selection should not go across lines here.</text>
<text>
<tspan x="25" y="190">However, these lines of text are achieved by using</tspan>
<tspan x="25" y="215">one 'tspan' per line, all contained within the same</tspan>
<tspan x="25" y="240">'text' element, so you should be able to select all</tspan>
<tspan x="25" y="265">four lines at the same time.</tspan>
</text>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</g>
</svg>