| 1 |
<svg version="1.1" baseProfile="tiny" 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="BB" author="CL" status="accepted" |
| 15 |
version="$Revision: 1.7 $" testname="$RCSfile: linking-a-07-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/linking.html#Links"> |
| 17 |
<p> |
| 18 |
Verify that the target attribute on the 'a' element takes precedence over the xlink:show attribute. |
| 19 |
There are three subtests, in each of which two similarly |
| 20 |
colored arrows comprise the content of an 'a' element. The arrow on the left, outlined |
| 21 |
in blue, has no "target" attribute; the arrow on the right, outlined in red, has a |
| 22 |
"target" attribute. The |
| 23 |
link destination is expressed by "xlink:href=". |
| 24 |
The initial view of this test contains the six arrows, labelling text, and the usual template legend and frame. |
| 25 |
</p> |
| 26 |
<p> |
| 27 |
The top-most (yellow) arrows link to an external SVG file, which is |
| 28 |
local (in the same directory). The target file contains SVG 'text' elements |
| 29 |
which comprise a TOC and brief description of all of the test files |
| 30 |
for Linking. |
| 31 |
</p> |
| 32 |
<p> |
| 33 |
The middle (green) arrows links to the same external SVG file, but with xlink:show="new". |
| 34 |
</p> |
| 35 |
<p> |
| 36 |
The bottom-most (blue) arrows links to the same external SVG file, but with xlink:show="replace". |
| 37 |
</p> |
| 38 |
</d:testDescription> |
| 39 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 40 |
<p> |
| 41 |
Click each of the arrows once. |
| 42 |
</p> |
| 43 |
</d:operatorScript> |
| 44 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 45 |
<p> |
| 46 |
The test has passed if: |
| 47 |
</p> |
| 48 |
<ul> |
| 49 |
<li>Upon clicking the left-most yellow arrow, the image of the linkingToc-t.svg |
| 50 |
file replaces the initial view of this test case in the viewer frame. On clicking the right-most yellow arrow, |
| 51 |
the image of the linkingToc-t.svg appears in a new frame.</li> |
| 52 |
<li>Upon clicking any of the green arrows the image of the linkingToc-t.svg appears in a new frame.</li> |
| 53 |
<li>Upon clicking the left-most blue arrow, the image of the linkingToc-t.svg file replaces the initial |
| 54 |
view of this test case in the viewer frame. |
| 55 |
On clicking the right blue arrow produces the image of the linkingToc-t.svg in a new frame.</li> |
| 56 |
</ul> |
| 57 |
</d:passCriteria> |
| 58 |
</d:SVGTestCase> |
| 59 |
<title id="test-title">$RCSfile: linking-a-07-t.svg,v $</title> |
| 60 |
<defs> |
| 61 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 62 |
<font-face-src> |
| 63 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 64 |
</font-face-src> |
| 65 |
</font-face> |
| 66 |
</defs> |
| 67 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 68 |
<text x="90" y="16" font-size="12">xlink 'show' attribute on 'a' element.</text> |
| 69 |
<g transform="translate(-120)"> |
| 70 |
<a xlink:href="../images/linkingToc-t.svg"> |
| 71 |
<path fill="yellow" stroke="blue" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 72 |
</a> |
| 73 |
<g transform="translate(0,90)"> |
| 74 |
<a xlink:href="../images/linkingToc-t.svg" xlink:show="new"> |
| 75 |
<path fill="lime" stroke="blue" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 76 |
</a> |
| 77 |
</g> |
| 78 |
<g transform="translate(0,180)"> |
| 79 |
<a xlink:href="../images/linkingToc-t.svg" xlink:show="replace"> |
| 80 |
<path fill="aqua" stroke="blue" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 81 |
</a> |
| 82 |
</g> |
| 83 |
</g> |
| 84 |
<g transform="translate(120)"> |
| 85 |
<a xlink:href="../images/linkingToc-t.svg" target="foo"> |
| 86 |
<path fill="yellow" stroke="red" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 87 |
</a> |
| 88 |
<g transform="translate(0,90)"> |
| 89 |
<a xlink:href="../images/linkingToc-t.svg" xlink:show="new" target="foo"> |
| 90 |
<path fill="lime" stroke="red" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 91 |
</a> |
| 92 |
</g> |
| 93 |
<g transform="translate(0,180)"> |
| 94 |
<a xlink:href="../images/linkingToc-t.svg" xlink:show="replace" target="foo"> |
| 95 |
<path fill="aqua" stroke="red" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 96 |
</a> |
| 97 |
</g> |
| 98 |
</g> |
| 99 |
</g> |
| 100 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 101 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text> |
| 102 |
</g> |
| 103 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 104 |
<!-- comment out this watermark once the test is approved --> |
| 105 |
<!--<g id="draft-watermark"> |
| 106 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 107 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 108 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 109 |
</g>--> |
| 110 |
</svg> |