| 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 <!--======================================================================--> | |
| 5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> | |
| 6 <!--= Institute of Technology, Institut National de Recherche en =--> | |
| 7 <!--= Informatique et en Automatique, Keio University). All Rights =--> | |
| 8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> | |
| 9 <!--======================================================================--> | |
| 10 <!-- =====================================================================--> | |
| 11 <!-- --> | |
| 12 <!-- linking-uri-01-b.svg --> | |
| 13 <!-- --> | |
| 14 <!-- Link test of the 'view' element and its attributes, 1 of 2, internal.--> | |
| 15 <!-- --> | |
| 16 <!-- Note. This is one of a pair, with linking-uri-02-b.svg, which is --> | |
| 17 <!-- identical except that all of it's links refer to the objects in --> | |
| 18 <!-- this file. --> | |
| 19 <!-- --> | |
| 20 <!-- Author : Lee Klosterman 01-February-2002 --> | |
| 21 <!-- Revised for Mobile Profiles: Jun Fujisawa 16-Jul-2002 --> | |
| 22 <!-- --> | |
| 23 <!-- History: --> | |
| 24 <!-- --> | |
| 25 <!-- =====================================================================--> | |
| 26 <!--======================================================================--> | |
| 27 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> | |
| 28 <!--= log messages, and therefore is no longer in the preceding preamble.=--> | |
| 29 <!--======================================================================--> | |
| 30 <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%" v
iewBox="0 0 480 360"> | |
| 31 | |
| 32 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" ch
apter="linking" section="uri" profile="f" index="01" > | |
| 33 | |
| 34 <!-- For BE-01 case, 'Previous' should target last BE of previous chapte
r-focus --> | |
| 35 | |
| 36 <!-- Previous focus="inBound" BENumber="03" / --> | |
| 37 | |
| 38 <!-- For last BE of chapter, 'Next' should target first BE of next chapt
er-focus --> | |
| 39 | |
| 40 <!-- Next focus="view" BENumber="05" / --> | |
| 41 <!-- Parent chapter="toc" / --> | |
| 42 | |
| 43 <!-- For now, all BE target DT-01 in same chapter-focus as Child --> | |
| 44 | |
| 45 <!-- Child testType="DT" DTNumber="01" / --> | |
| 46 | |
| 47 <OperatorScript version="$Revision: 1.6 $" testname="linking-uri
-01-b.svg"> | |
| 48 <Paragraph> | |
| 49 Verify the capability to handle links to 'view' elements, and th
e | |
| 50 permissible attributes on those elements. All of the links in t
his | |
| 51 test case are internal, i.e., to 'view' elements within the SVG
file. | |
| 52 This test is one of a pair, with linking-uri-02-b, which is subs
tantially | |
| 53 identical except that its links target view elements in this tes
t case, | |
| 54 i.e., they are external). | |
| 55 </Paragraph> | |
| 56 <Paragraph> | |
| 57 In the four quadrants of the initial picture are four graphical
objects. | |
| 58 Clockwise from upper right, they are | |
| 59 a red rectangle, blue ellipse, green polygon (pentagon), and yel
low | |
| 60 circle. Each is labelled and tightly boxes with a rectangular f
rame. | |
| 61 Each is referenced by an associated 'view' element, with attribu
tes | |
| 62 per the labels in the picture. | |
| 63 </Paragraph> | |
| 64 <Paragraph> | |
| 65 In the center is a gray box with four lines of text, each of whi
ch says | |
| 66 "Go to" followed by Rectangle, Ellipse, Polygon, and Circle, res
pectively. | |
| 67 Each of these is contained within an 'a' element, whose xlink:hr
ef names | |
| 68 the respective 'view' element of the respective graphical object
. | |
| 69 </Paragraph> | |
| 70 <Paragraph> | |
| 71 Activating the Rectangle link should cause no change in the pict
ure. Its | |
| 72 'view' element has no attributes (other than id), so the correct
view in | |
| 73 the frame is of the parent 'svg' element, which is the whole pic
ture. | |
| 74 </Paragraph> | |
| 75 <Paragraph> | |
| 76 Activating the Ellipse link should cause the initial picture to
be replaced in the | |
| 77 frame by the whole ellipse element, uniformly scaled, with its b
oxing rect | |
| 78 just inside the frame. | |
| 79 </Paragraph> | |
| 80 <Paragraph> | |
| 81 Assuming that a "back" action has | |
| 82 been requested, activating the Polygon link should cause the ini
tial | |
| 83 picture to remain unchanged within the frame, except that the po
lygon is | |
| 84 "highlighted" (the meaning of highlighted is not further specifi
ed). | |
| 85 </Paragraph> | |
| 86 <Paragraph> | |
| 87 Assuming that a "back" action has been requested, | |
| 88 activating the Circle link should cause the initial picture to b
e replaced in the | |
| 89 frame by the whole whole element, non-uniformly scaled so that i
t is stretched | |
| 90 horizontally into an ellipse, with its boxing rect just inside t
he frame. | |
| 91 </Paragraph> | |
| 92 <Paragraph> | |
| 93 There are several reference images associated with this test cas
e. The first | |
| 94 illustrates the correct initial state of the rendered SVG file,
which should | |
| 95 also be the correct picture after the Rectangle link is executed
. | |
| 96 The second, third, and fourth illustrate the correct images as d
escribed | |
| 97 above after respectively the Ellipse, Polygon, and Circle links
are activated. | |
| 98 (Note. This harness does not yet provide access to multiple PNG
s; the PNG for the | |
| 99 initial view is shown.) | |
| 100 </Paragraph> | |
| 101 <Paragraph> | |
| 102 The test uses the 'rect', 'circle', 'ellipse', and 'polygon' ele
ments, | |
| 103 as well as basic fill (solid simple colors), | |
| 104 stroke (black and colored 1-pixel lines), font-family (Arial) an
d font-size properties. | |
| 105 </Paragraph> | |
| 106 </OperatorScript> | |
| 107 | |
| 108 </SVGTestCase> | |
| 109 | |
| 110 <title id="test-title">linking-uri-01-b</title> | |
| 111 <desc id="test-desc">Link test of the 'view' element and its attributes, 1 o
f 2, internal.</desc> | |
| 112 <!--======================================================================--
> | |
| 113 <!--Content of Test Case follows... =====================--
> | |
| 114 <!--======================================================================--
> | |
| 115 <g id="test-body-content"> | |
| 116 <text x="65" y="16" font-size="12" >Link test of the 'view' element and
its attributes, 1 of 2, internal.</text> | |
| 117 <g transform="translate(-150,75)"> | |
| 118 <rect x="300" y="55" width="125" height="85" fill="#aaa" /> | |
| 119 <a xlink:href="#rect-view"> | |
| 120 <text x="320" y="70" fill="red" >Go to Rectangle</text> | |
| 121 </a> | |
| 122 <a xlink:href="#ellipse-view"> | |
| 123 <text x="320" y="90" fill="blue" >Go to Ellipse</text> | |
| 124 </a> | |
| 125 <a xlink:href="#circle-view"> | |
| 126 <text x="320" y="110" fill="yellow" >Go to Circle</text> | |
| 127 </a> | |
| 128 <a xlink:href="#polygon-view"> | |
| 129 <text x="320" y="130" fill="green" >Go to Polygon</text> | |
| 130 </a> | |
| 131 <text x="315" y="150" font-size="12" >Click element's line</text
> | |
| 132 <text x="315" y="162" font-size="12" >to link to its view</text> | |
| 133 </g> | |
| 134 | |
| 135 <!-- View with no attributes. Picture should not change. --> | |
| 136 <view id="rect-view"/> | |
| 137 <rect id="rect-object" fill="red" x="295" y="36" width="135" height="68
"/> | |
| 138 <text id="rect-label" x="340" y="116">Rectangle</text> | |
| 139 <rect x="292" y="29" width="141" height="91" fill="none" stroke="black"
/> | |
| 140 <text x="302" y="130" font-size="10" >No view attributes except id.</tex
t> | |
| 141 <!-- Test viewBox. Should blow-up the ellipse in the frame. --> | |
| 142 <view id="ellipse-view" viewBox="294 221 152 83"/> | |
| 143 <ellipse id="ellipse-object" fill="blue" cx="370" cy="251" rx="72" ry="
32"/> | |
| 144 <text id="ellipse-label" x="355" y="295">Ellipse</text> | |
| 145 <rect x="295" y="216" width="150" height="82" fill="none" stroke="black"
/> | |
| 146 <text x="315" y="214" font-size="10" >viewBox, should fill frame.</text> | |
| 147 <!-- Test preserveAspectRatio. --> | |
| 148 <view id="circle-view" viewBox="20 29 128 91.5" preserveAspectRatio="non
e"/> | |
| 149 <circle id="circle-object" fill="yellow" cx="85" cy="68" r="36"/> | |
| 150 <text id="circle-label" x="70" y="116">Circle</text> | |
| 151 <rect x="36" y="29" width="98" height="91" fill="none" stroke="black" /> | |
| 152 <text x="36" y="128" font-size="10" >viewBox & non-uniform</text> | |
| 153 <text x="36" y="137" font-size="10" >preserveAspectRatio</text> | |
| 154 <!-- Test viewTarget attribute, should highlight the polygon. --> | |
| 155 <view id="polygon-view" viewTarget="polygon-object"/> | |
| 156 <polygon id="polygon-object" fill="green" points="87,211 134,238 116,28
3 57,283 39,238 87,211"/> | |
| 157 <text id="polygon-label" x="65" y="295">Polygon</text> | |
| 158 <rect x="36" y="208" width="100" height="89" fill="none" stroke="black"
/> | |
| 159 <text x="46" y="197" font-size="10" >viewTarget, should</text> | |
| 160 <text x="46" y="206" font-size="10" >highlight polygon</text> | |
| 161 </g> | |
| 162 | |
| 163 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="bl
ack">$Revision: 1.6 $</text> | |
| 164 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" s
troke="#000000"/> | |
| 165 </svg> | |
| OLD | NEW |