| 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="Jon Ferraiolo" status="accepted" |
| 15 |
version="$Revision: 1.8 $" testname="$RCSfile: text-tselect-01-b.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#TextSelection"> |
| 17 |
<p> |
| 18 |
Test text selection. |
| 19 |
</p> |
| 20 |
<p> |
| 21 |
Run the test. Make a text selection in the upper block of text, and verify that text selection is possible and that the selection does not extend across multiple lines. Now make a text selection in the lower block of text, verifying that the selection <em>does</em> extend over multiple lines. |
| 22 |
|
| 23 |
Thus, it should |
| 24 |
be possible to start text selection at the start of the "However" |
| 25 |
and drag through the end of "same time." and the all four lines |
| 26 |
should be selected. |
| 27 |
</p> |
| 28 |
</d:testDescription> |
| 29 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 30 |
<p> |
| 31 |
Run the test. No interaction required. |
| 32 |
</p> |
| 33 |
</d:operatorScript> |
| 34 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 35 |
<p> |
| 36 |
For basic viewers conformant acion is as described above if there |
| 37 |
is a text selection mechanism. Since text selection is optional |
| 38 |
on a basic device if text selection is not implemented then this |
| 39 |
test is a pass, move on to the next test. |
| 40 |
</p> |
| 41 |
</d:passCriteria> |
| 42 |
</d:SVGTestCase> |
| 43 |
<title id="test-title">$RCSfile: text-tselect-01-b.svg,v $</title> |
| 44 |
<defs> |
| 45 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 46 |
<font-face-src> |
| 47 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 48 |
</font-face-src> |
| 49 |
</font-face> |
| 50 |
</defs> |
| 51 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 52 |
<text font-size="16" x="10" y="20">Test single line and multiline text selection.</text> |
| 53 |
<g font-size="16"> |
| 54 |
<text x="25" y="65">Here is a stand-alone 'text' element.</text> |
| 55 |
<text x="25" y="90">Here is a second 'text' element just below.</text> |
| 56 |
<text x="25" y="115">Because these are four separate 'text' elements,</text> |
| 57 |
<text x="25" y="140">text selection should not go across lines here.</text> |
| 58 |
<text> |
| 59 |
<tspan x="25" y="190">However, these lines of text are achieved by using</tspan> |
| 60 |
<tspan x="25" y="215">one 'tspan' per line, all contained within the same</tspan> |
| 61 |
<tspan x="25" y="240">'text' element, so you should be able to select all</tspan> |
| 62 |
<tspan x="25" y="265">four lines at the same time.</tspan> |
| 63 |
</text> |
| 64 |
</g> |
| 65 |
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text> |
| 66 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 67 |
</g> |
| 68 |
<!-- comment out this watermark once the test is approved --> |
| 69 |
<!--<g id="draft-watermark"> |
| 70 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 71 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 72 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 73 |
</g>--> |
| 74 |
</svg> |