blob: 880907a05a46274477991362279324968dda9dc9 [file] [log] [blame]
<svg id="svg-root" width="100%" height="100%"
viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
template-version="1.4" reviewer="ED" author="CL" status="accepted"
version="$Revision: 1.2 $" testname="$RCSfile: struct-image-13-f.svg,v $">
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/[chapter]#[section]">
<p>
Tests that different PNG image types are correctly handled. These images are non-interlaced.
</p>
<p>
This test uses the
<a href="http://www.schaik.com/pngsuite/">PNG Group test suite</a>
created by Willem van Schaik.
</p>
</d:testDescription>
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
<p>
Run the test. No interaction required.
</p>
</d:operatorScript>
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
<p>
The test is passed if all the small PNG icons are displayed as in the reference image.
</p>
</d:passCriteria>
</d:SVGTestCase>
<title id="test-title">$RCSfile: struct-image-13-f.svg,v $</title>
<defs>
<font-face
font-family="SVGFreeSansASCII"
unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<!-- something to show transparency -->
<rect x="16" y="32" width="320" height="8" fill="#3C3"/>
<rect x="16" y="48" width="320" height="8" fill="#9F9"/>
<!-- 1 bit black and white -->
<image xlink:href="../images/PngSuite/basn0g01.png" x="16" y="32" width="32" height="32"/>
<!-- 2 bit greyscale -->
<image xlink:href="../images/PngSuite/basn0g02.png" x="64" y="32" width="32" height="32"/>
<!-- 4 bit greyscale -->
<image xlink:href="../images/PngSuite/basn0g04.png" x="112" y="32" width="32" height="32"/>
<!-- 8 bit greyscale -->
<image xlink:href="../images/PngSuite/basn0g08.png" x="160" y="32" width="32" height="32"/>
<!-- 16 bit greyscale -->
<image xlink:href="../images/PngSuite/basn0g16.png" x="208" y="32" width="32" height="32"/>
<!-- 8 bit greyscale plus alpha -->
<image xlink:href="../images/PngSuite/basn4a08.png" x="256" y="32" width="32" height="32"/>
<!-- 16 bit greyscale plus alpha -->
<image xlink:href="../images/PngSuite/basn4a16.png" x="304" y="32" width="32" height="32"/>
<text x="16" y="100" font-size="16" fill="#3C3">Greyscale, various bit depths, two with alpha</text>
<!-- something to show transparency -->
<rect x="16" y="132" width="368" height="8" fill="#9F9"/>
<rect x="16" y="148" width="368" height="8" fill="#3C3"/>
<!-- 8 bits RGB -->
<image xlink:href="../images/PngSuite/basn2c08.png" x="16" y="132" width="32" height="32"/>
<!-- 16 bits RGB -->
<image xlink:href="../images/PngSuite/basn2c16.png" x="64" y="132" width="32" height="32"/>
<!-- 1 bit indexed -->
<image xlink:href="../images/PngSuite/basn3p01.png" x="112" y="132" width="32" height="32"/>
<!-- 2 bit indexed -->
<image xlink:href="../images/PngSuite/basn3p02.png" x="160" y="132" width="32" height="32"/>
<!-- 4 bit indexed -->
<image xlink:href="../images/PngSuite/basn3p04.png" x="208" y="132" width="32" height="32"/>
<!-- 8 bit indexed -->
<image xlink:href="../images/PngSuite/basn3p08.png" x="256" y="132" width="32" height="32"/>
<!-- 8 bits RGB plus alpha -->
<image xlink:href="../images/PngSuite/basn6a08.png" x="304" y="132" width="32" height="32"/>
<!-- 16 bits RGB plus alpha -->
<image xlink:href="../images/PngSuite/basn6a16.png" x="352" y="132" width="32" height="32"/>
<text x="16" y="200" font-size="16" fill="#3C3">Truecolor and indexed, various bit depths, two with alpha</text>
<text x="16" y="260" font-size="24" fill="#3C3">Non-interlaced images</text>
<!--
<image xlink:href="../images/PngSuite/" x="" y="" width="32" height="32"/>
-->
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text id="revision" x="10" y="340" stroke="none"
fill="black">$Revision: 1.2 $</text>
</g>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
<!-- comment out this watermark once the test is approved -->
<!--
<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>
-->
</svg>