| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="UTF-8"?> | |
| 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics
/SVG/1.1/DTD/svg11-basic.dtd"> | |
| 3 <!--======================================================================--> | |
| 4 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> | |
| 5 <!--= Institute of Technology, Institut National de Recherche en =--> | |
| 6 <!--= Informatique et en Automatique, Keio University). All Rights =--> | |
| 7 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> | |
| 8 <!--======================================================================--> | |
| 9 <!-- ===================================================================== --> | |
| 10 <!-- --> | |
| 11 <!-- text-selection-BE-13.svg --> | |
| 12 <!-- renamed for 1.1 suite to text-tselect-01-b.svg
--> | |
| 13 <!-- --> | |
| 14 <!-- Test single line and multiline text selection. --> | |
| 15 <!-- --> | |
| 16 <!-- Author : Jon Ferraiolo 06-Aug-2000 --> | |
| 17 <!-- 1.1 revision by Rick Graham --> | |
| 18 <!-- --> | |
| 19 <!-- History: --> | |
| 20 <!-- 06-Aug-2000, JF: Serial#1 created. --> | |
| 21 <!-- --> | |
| 22 <!-- ===================================================================== --> | |
| 23 <!--======================================================================--> | |
| 24 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> | |
| 25 <!--= log messages, and therefore is no longer in the preceding preamble.=--> | |
| 26 <!--======================================================================--> | |
| 27 <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%" vi
ewBox="0 0 480 360"> | |
| 28 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> | |
| 29 <OperatorScript version="$Revision: 1.8 $" testname="text-tselec
t-01-b.svg"> | |
| 30 <Paragraph> | |
| 31 Test text selection. | |
| 32 </Paragraph> | |
| 33 <Paragraph> | |
| 34 As the text describes, text selection should be
constrained within | |
| 35 a single line of text for the first four lines.
But in the second | |
| 36 four lines, text selection should span across li
nes. Thus, it should | |
| 37 be possible to start text selection at the start
of the "However" | |
| 38 and drag through the end of "same time." and the
all four lines | |
| 39 should be selected. | |
| 40 </Paragraph> | |
| 41 <Paragraph> | |
| 42 For basic viewers conformant acion is as describ
ed above if there | |
| 43 is a text selection mechanism. Since text selec
tion is optional | |
| 44 on a basic device if text selection is not imple
mented then this | |
| 45 test is a pass, move on to the next test. | |
| 46 </Paragraph> | |
| 47 </OperatorScript> | |
| 48 </SVGTestCase> | |
| 49 <title id="test-title">text-tselect-01-b.svg</title> | |
| 50 <desc id="test-desc">Test single line and multiline text selection.</des
c> | |
| 51 <!--====================================================================
==--> | |
| 52 <!--Content of Test Case follows... ===================
==--> | |
| 53 <!--====================================================================
==--> | |
| 54 <g id="test-body-content"> | |
| 55 <text font-family="Arial" font-size="16" x="10" y="20">Test sin
gle line and multiline text selection.</text> | |
| 56 <g font-family="Arial" font-size="16" > | |
| 57 <text x="25" y="65">Here is a stand-alone 'text' element
.</text> | |
| 58 <text x="25" y="90">Here is a second 'text' element just
below.</text> | |
| 59 <text x="25" y="115">Because these are four separate 'te
xt' elements,</text> | |
| 60 <text x="25" y="140">text selection should not go across
lines here.</text> | |
| 61 <text> | |
| 62 <tspan x="25" y="190">However, these lines of te
xt are achieved by using</tspan> | |
| 63 <tspan x="25" y="215">one 'tspan' per line, all
contained within the same</tspan> | |
| 64 <tspan x="25" y="240">'text' element, so you sho
uld be able to select all</tspan> | |
| 65 <tspan x="25" y="265">four lines at the same tim
e.</tspan> | |
| 66 </text> | |
| 67 </g> | |
| 68 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black"
>$Revision: 1.8 $</text> | |
| 69 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" strok
e="#000000"/> | |
| 70 </g> | |
| 71 <script> | |
| 72 if (window.testRunner) | |
| 73 window.testRunner.dumpSelectionRect(); | |
| 74 document.execCommand("SelectAll"); | |
| 75 </script> | |
| 76 </svg> | |
| 77 | |
| OLD | NEW |