[lasem] tests: more test files.



commit ca5fb1ad4bae168ec3620ecf826081d71150dda4
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Oct 21 17:31:05 2012 +0200

    tests: more test files.

 tests/data/svg/suite/filters/feOffset-ref.png      |  Bin 0 -> 3512 bytes
 tests/data/svg/suite/filters/feOffset.svg          |   90 ++++++++
 tests/data/svg/suite/filters/feTile.svg            |   19 ++
 tests/data/svg/suite/filters/marker-01.png         |  Bin 0 -> 2305 bytes
 tests/data/svg/suite/filters/marker-01.svg         |  140 ++++++++++++
 tests/data/svg/suite/filters/marker-02.png         |  Bin 0 -> 2947 bytes
 tests/data/svg/suite/filters/marker-02.svg         |  230 ++++++++++++++++++++
 .../misc => suite/gradients}/11_01-ref.png         |  Bin 621 -> 621 bytes
 .../{samples/misc => suite/gradients}/11_01.svg    |    0
 .../markers}/librsvg-bug345527-arrows.png          |  Bin 2256 -> 2256 bytes
 .../markers}/librsvg-bug345527-arrows.svg          |    0
 .../librsvg-bug403357-marker-overflow-visible.png  |  Bin 1382 -> 1382 bytes
 .../librsvg-bug403357-marker-overflow-visible.svg  |    0
 .../svg/{samples/misc => suite/paths}/linejoin.png |  Bin 5175 -> 5175 bytes
 .../svg/{samples/misc => suite/paths}/linejoin.svg |    0
 .../svg/{samples/misc => suite/paths}/rect-ref.png |  Bin 424 -> 424 bytes
 .../svg/{samples/misc => suite/paths}/rect.svg     |    0
 .../misc => suite/patterns}/pattern01-ref.png      |  Bin 4073 -> 4073 bytes
 .../{samples/misc => suite/patterns}/pattern01.svg |    0
 19 files changed, 479 insertions(+), 0 deletions(-)
---
diff --git a/tests/data/svg/suite/filters/feOffset-ref.png b/tests/data/svg/suite/filters/feOffset-ref.png
new file mode 100644
index 0000000..1b30312
Binary files /dev/null and b/tests/data/svg/suite/filters/feOffset-ref.png differ
diff --git a/tests/data/svg/suite/filters/feOffset.svg b/tests/data/svg/suite/filters/feOffset.svg
new file mode 100755
index 0000000..dc7d218
--- /dev/null
+++ b/tests/data/svg/suite/filters/feOffset.svg
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd";>
+
+<!--======================================================================-->
+<!--=  Copyright 2000, 2002 World Wide Web Consortium, (Massachusetts    =-->
+<!--=  Institute of Technology, Institut National de Recherche en        =-->
+<!--=  Informatique et en Automatique, Keio University). All Rights      =-->
+<!--=  Reserved. See http://www.w3.org/Consortium/Legal/.                =-->
+<!--======================================================================-->
+<!--======================================================================-->
+<!--                                                                      -->
+<!-- filters-fldMrgOff-BE-15.svg                                          -->
+<!-- renamed for 1.1 suite to filters-offset-01-f.svg                     -->
+<!-- renamed for SVGT/B to filters-offset-01-b.svg                        -->
+<!--                                                                      -->
+<!-- Test which verifies the basic facilities of feFlood, feMerge,        -->
+<!-- and feOffset.                                                        -->
+<!--                                                                      -->
+<!-- Author : Peter Graffagnino 15-Aug-2000, Thomas DeWeese 5-Feb-2002    -->
+<!--          1.1 revision by Thomas DeWeese 5-Feb-2002                   -->
+<!--          Revised for SVGT/B: Benoit Bezaire Jul/08/2002              -->
+<!--                                                                      -->
+<!-- History:                                                             -->
+<!--  15-Aug-2000, pgraff created.                                        -->
+<!--                                                                      -->
+<!--======================================================================-->
+<!--======================================================================-->
+<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
+<!--= log messages, and therefore is no longer in the preceding preamble.=-->
+<!--======================================================================-->
+
+<svg id="svg-root" width="240" height="180" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"; 
+     xmlns:xlink="http://www.w3.org/1999/xlink"; version="1.1" baseProfile="basic">
+   <title id="test-title">filters-offset-01-b</title>
+   <desc id="test-desc">Test which verifies the basic facilities of feFlood, feMerge, and feOffset.</desc>
+   <!--===============================================================-->
+   <!--Content of Test Case follows...                  ==============-->
+   <!--===============================================================-->
+   <g id="test-body-content">
+      <defs>
+         <filter id="FOMTest" filterUnits="objectBoundingBox" 
+                 x="0" y="0" width="2.5" height="4">
+
+            <feOffset result="Off1" dx="40" dy="30"/>
+            <feFlood result="F1" flood-color="#408000" flood-opacity=".8" />
+            <feComposite in2="Off1" operator="in" result="C1"/>
+
+            <feOffset in="SourceGraphic" result="Off2" dx="80" dy="60"/>
+            <feFlood result="F2" flood-color="#408000" flood-opacity=".6" />
+            <feComposite in2="Off2" operator="in" result="C2"/>
+
+            <feOffset in="SourceGraphic" result="Off3" dx="120" dy="90"/>
+            <feFlood result="F3" flood-color="#408000" flood-opacity=".4" />
+            <feComposite in2="Off3" operator="in" result="C3"/>
+
+            <feMerge>
+               <feMergeNode in="C3"/>
+               <feMergeNode in="C2"/>
+               <feMergeNode in="C1"/>
+               <feMergeNode in="SourceGraphic"/>
+            </feMerge>
+         </filter>
+      </defs>
+   
+      <circle cx="160" cy="50" r="40" fill="#000" 
+              filter="url(#FOMTest)"/>
+   
+      <!--  Add some crosshairs of the same color of the 
+            flood at the same location as the offset -->
+   
+      <!-- 20 pixel cross hair at 120,90 -->
+      <path fill="#000" transform="translate(120, 90)"
+            d="M-1,-11h2v10h10v2h-10v10h-2v-10h-10v-2h10v-10"/>
+   
+      <!-- 20 pixel cross hair at 160,120 -->
+      <path fill="#408000" fill-opacity=".8" transform="translate(160, 120)" 
+            d="M-1,-11h2v10h10v2h-10v10h-2v-10h-10v-2h10v-10"/>
+   
+      <!-- 20 pixel cross hair at 200,150 -->
+      <path fill="#408000" fill-opacity=".6" transform="translate(200, 150)"
+            d="M-1,-11h2v10h10v2h-10v10h-2v-10h-10v-2h10v-10"/>
+   
+      <!-- 20 pixel cross hair at 240,180 -->
+      <path fill="#408000" fill-opacity=".4" transform="translate(240, 180)"
+            d="M-1,-11h2v10h10v2h-10v10h-2v-10h-10v-2h10v-10"/>
+
+   </g>
+
+</svg>
+
diff --git a/tests/data/svg/suite/filters/feTile.svg b/tests/data/svg/suite/filters/feTile.svg
new file mode 100755
index 0000000..b0f6574
--- /dev/null
+++ b/tests/data/svg/suite/filters/feTile.svg
@@ -0,0 +1,19 @@
+<svg version="1.1" baseProfile="basic" id="svg-root" width="480" height="360" viewBox="0 0 480 360" xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns="http://www.w3.org/2000/svg"; preserveAspectRatio="xMidYMid meet" zoomAndPan="magnify">
+	<g id="test-body-content">
+		<defs>
+			<filter id="feTileFilter" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse" x="115" y="40" width="250" height="250">
+				<feFlood x="115" y="40" width="54" height="19" flood-color="red"/>
+				<feOffset x="115" y="40" width="50" height="25" dx="6" dy="6" result="offset"/>
+				<feTile/>
+			</filter>
+		</defs>
+		<!-- The 'g' has no content, but the filter causes a rectangle
+         to be created which is filled with a tiled pattern. -->
+		<g filter="url(#feTileFilter)"/>
+		<!-- Show the outline of the rectangle which is filled with the tiled pattern. -->
+		<rect x="115.5" y="40.5" width="250" height="250" fill="none" stroke="blue" stroke-width="1"/>
+		<!-- draw a semi-transparent rectangle over one of the tiles -->
+		<rect x="215.5" y="115.5" width="50" height="25" fill="blue" fill-opacity="0.5" stroke="black"/>
+	</g>
+	<rect id="test-frame" x="0.5" y="0.5" width="479" height="359" fill="none" stroke="#000000"/>
+</svg>
diff --git a/tests/data/svg/suite/filters/marker-01.png b/tests/data/svg/suite/filters/marker-01.png
new file mode 100644
index 0000000..056ac80
Binary files /dev/null and b/tests/data/svg/suite/filters/marker-01.png differ
diff --git a/tests/data/svg/suite/filters/marker-01.svg b/tests/data/svg/suite/filters/marker-01.svg
new file mode 100755
index 0000000..5b9a133
--- /dev/null
+++ b/tests/data/svg/suite/filters/marker-01.svg
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
+<!--======================================================================-->
+<!--=  Copyright 2000 World Wide Web Consortium, (Massachusetts          =-->
+<!--=  Institute of Technology, Institut National de Recherche en        =-->
+<!--=  Informatique et en Automatique, Keio University). All Rights      =-->
+<!--=  Reserved. See http://www.w3.org/Consortium/Legal/.                =-->
+<!--======================================================================-->
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!-- paint-markers-BE-03.svg                                               -->
+<!-- renamed for 1.1 suite to painting-marker-01-f.svg                                -->
+<!--                                                                       -->
+<!-- Tests Marker support                                                  -->
+<!--                                                                       -->
+<!-- Author : Dean Jackson  06-08-2000                                     -->
+<!--          1.1 revision by Rick Graham                                  -->
+<!--                                                                       -->
+<!-- History:                                                              -->
+<!--  06 08 2000, DJ, created                                              -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+<!--======================================================================-->
+<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
+<!--= log messages, and therefore is no longer in the preceding preamble.=-->
+<!--======================================================================-->
+<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
+	<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/";>
+		<OperatorScript version="$Revision: 1.8 $" testname="painting-marker-01-f.svg">
+			<Paragraph>Tests the basic support for markers. For the three tests, there 
+			should be two identical paths with markers drawn. The path on the left is 
+			rendered using the marker elements. The path on the right is rendered using 
+			the equivalent SVG, showing what the marked path should look like. 
+			</Paragraph>
+			<Paragraph>
+			The top test examines the basic support for the marker element and style. The markers are red rectangles. 
+			</Paragraph>
+			<Paragraph>
+			The middle test examines the support for the different styles of marker properties. The 
+			"marker-start" property defines the marker to use at the first vertex of the marked path,
+			 in this case a red rectangle. The "marker-end" property defines the marker to use at the
+			  last vertex of the marked path, in this case a blue triangle. The "marker-mid" property 
+			  defines the marker to use at all vertices, other than the first and last, of the marked path, 
+			  in this case a green circle. 
+			</Paragraph>
+			<Paragraph>The bottom test examines the support for marker orientation along the 
+			path direction. The second vertex, the top right corner of the path, has a marker that 
+			is rotated 45 degrees, since that is the average of the horizontal and vertical segments 
+			each side. The last vertex, the bottom right corner of the path, has a marker rotated 90 
+			degrees since that is the direction of the last path segment. 
+			</Paragraph>
+			<Paragraph>
+				The rendered picture should match the reference image, except for possible
+				variations in the labelling text (per CSS2 rules).  
+			</Paragraph>
+		</OperatorScript>
+	</SVGTestCase>
+	<title id="test-title">painting-marker-01-f.svg</title>
+	<desc id="test-desc">Checks if viewer can handle marker elements on paths</desc>
+	<!--======================================================================-->
+	<!--Content of Test Case follows...                  =====================-->
+	<!--======================================================================-->
+	<g id="test-body-content">
+		<!-- ===================================================================== -->
+		<!-- Define a few simple marker elements                                   -->
+		<!-- ===================================================================== -->
+		<marker id="marker1" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
+			<rect width="10" height="10" fill="red" stroke="none"/>
+		</marker>
+		<marker id="marker2" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth" orient="auto">
+			<path d="M 5 0 L 10 10 L 0 10 Z" fill="blue" stroke="none"/>
+		</marker>
+		<marker id="markerStart" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
+			<rect width="10" height="10" fill="red" stroke="none"/>
+		</marker>
+		<marker id="markerMiddle" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
+			<circle cx="5" cy="5" r="5" fill="green" stroke="none"/>
+		</marker>
+		<marker id="markerEnd" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
+			<path d="M 5 0 L 10 10 L 0 10 Z" fill="blue" stroke="none"/>
+		</marker>
+		<!-- ===================================================================== -->
+		<!-- Basic Marker Test                                                     -->
+		<!-- ===================================================================== -->
+		<path fill="none" stroke="black" stroke-width="8" marker-start="url(#marker1)" marker-mid="url(#marker1)" marker-end="url(#marker1)" d="M 130 40 L 180 40 L 180 90"/>
+		<!-- ===================================================================== -->
+		<!-- Generate the equivalent SVG                                           -->
+		<!-- ===================================================================== -->
+		<g transform="translate(120,0)">
+			<path fill="none" stroke="black" stroke-width="8" d="M 130 40 L 180 40 L 180 90"/>
+			<g transform="translate(130,40) scale(8) scale(0.2, 0.2) translate(-5, -5)" fill="none" stroke="black" stroke-width="8">
+				<rect width="10" height="10" fill="red" stroke="none"/>
+			</g>
+			<g transform="translate(180,40) scale(8) scale(0.2, 0.2) translate(-5, -5)" fill="none" stroke="black" stroke-width="8">
+				<rect width="10" height="10" fill="red" stroke="none"/>
+			</g>
+			<g transform="translate(180,90) scale(8) scale(0.2, 0.2) translate(-5, -5)" fill="none" stroke="black" stroke-width="8">
+				<rect width="10" height="10" fill="red" stroke="none"/>
+			</g>
+		</g>
+		<!-- ===================================================================== -->
+		<!-- Start, Middle and End Marker Test                                     -->
+		<!-- ===================================================================== -->
+		<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 130 135 L 180 135 L 180 185"/>
+		<!-- ===================================================================== -->
+		<!-- Generate the equivalent SVG                                           -->
+		<!-- ===================================================================== -->
+		<g transform="translate(120,0)">
+			<path fill="none" stroke="black" stroke-width="8" d="M 130 135 L 180 135 L 180 185"/>
+			<g transform="translate(130,135) scale(8) scale(0.2, 0.2) translate(-5, -5)" fill="none" stroke="black" stroke-width="8">
+				<rect width="10" height="10" fill="red" stroke="none"/>
+			</g>
+			<g transform="translate(180,135) scale(8) scale(0.2, 0.2) translate(-5, -5)" fill="none" stroke="black" stroke-width="8">
+				<circle cx="5" cy="5" r="5" fill="green" stroke="none"/>
+			</g>
+			<g transform="translate(180,185) scale(8) scale(0.2, 0.2) translate(-5, -5)" fill="none" stroke="black" stroke-width="8">
+				<path d="M 5 0 L 10 10 L 0 10 Z" fill="blue" stroke="none"/>
+			</g>
+		</g>
+		<!-- ===================================================================== -->
+		<!-- Auto Orientation Marker Test                                          -->
+		<!-- ===================================================================== -->
+		<path fill="none" stroke="black" stroke-width="8" marker-start="url(#marker2)" marker-mid="url(#marker2)" marker-end="url(#marker2)" d="M 130 230 L 180 230 L 180 280"/>
+		<!-- ===================================================================== -->
+		<!-- Generate the equivalent SVG                                           -->
+		<!-- ===================================================================== -->
+		<g transform="translate(120,0)">
+			<path fill="none" stroke="black" stroke-width="8" d="M 130 230 L 180 230 L 180 280"/>
+			<g transform="translate(130,230) rotate(0) scale(8) scale(0.2, 0.2) translate(-5, -5)" fill="none" stroke="black" stroke-width="8">
+				<path d="M 5 0 L 10 10 L 0 10 Z" fill="blue" stroke="none"/>
+			</g>
+			<g transform="translate(180,230) rotate(45) scale(8) scale(0.2, 0.2) translate(-5, -5)" fill="none" stroke="black" stroke-width="8">
+				<path d="M 5 0 L 10 10 L 0 10 Z" fill="blue" stroke="none"/>
+			</g>
+			<g transform="translate(180,280) rotate(90) scale(8) scale(0.2, 0.2) translate(-5, -5)" fill="none" stroke="black" stroke-width="8">
+				<path d="M 5 0 L 10 10 L 0 10 Z" fill="blue" stroke="none"/>
+			</g>
+		</g>
+	</g>
+</svg>
diff --git a/tests/data/svg/suite/filters/marker-02.png b/tests/data/svg/suite/filters/marker-02.png
new file mode 100644
index 0000000..9d2ac05
Binary files /dev/null and b/tests/data/svg/suite/filters/marker-02.png differ
diff --git a/tests/data/svg/suite/filters/marker-02.svg b/tests/data/svg/suite/filters/marker-02.svg
new file mode 100755
index 0000000..167531a
--- /dev/null
+++ b/tests/data/svg/suite/filters/marker-02.svg
@@ -0,0 +1,230 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
+
+<!--======================================================================-->
+<!--=  Copyright 2000 World Wide Web Consortium, (Massachusetts          =-->
+<!--=  Institute of Technology, Institut National de Recherche en        =-->
+<!--=  Informatique et en Automatique, Keio University). All Rights      =-->
+<!--=  Reserved. See http://www.w3.org/Consortium/Legal/.                =-->
+<!--======================================================================-->
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!-- paint-markers-BE-04.svg                                               -->
+<!-- renamed for 1.1 suite to painting-marker-02-f.svg                                -->
+<!--                                                                       -->
+<!-- Tests Marker support                                                  -->
+<!--                                                                       -->
+<!-- Author : Dean Jackson  06-08-2000                                     -->
+<!--          1.1 revision by Rick Graham                                  -->
+<!--                                                                       -->
+<!-- History:                                                              -->
+<!--  06 08 2000, DJ, created                                              -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+<!--======================================================================-->
+<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
+<!--= log messages, and therefore is no longer in the preceding preamble.=-->
+<!--======================================================================-->
+<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";  id="svg-root"  viewBox="0 0 480 360" width="100%" height="100%">
+    <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/";>
+		<OperatorScript version="$Revision: 1.8 $" testname="painting-marker-02-f.svg">
+			<Paragraph>
+				Tests the rendering of markers, specifically property inheritance. For the four tests, there should
+				be two identical paths with markers drawn. The path on the left is
+				rendered using the marker elements. The path on the right is rendered using
+				the equivalent SVG, showing what the marked path should look like.
+			</Paragraph>
+			<Paragraph>
+				The top two tests examine the rendering of markers when the marker and the path
+				referencing it share the same parent and all painting properties are specfied on
+				that parent. The first test show inheritance of the 'fill' property and the
+				second the inheritance of the 'paint' property. In both tests, the marker
+				is painting using the same properties as the referencing object. Because of
+				scaling transformations on the marker, the stroke on the second test is thinner 
+				than on the referencing object.
+			</Paragraph>
+			<Paragraph>
+				The third and fourth tests examine the rendering of markers in a situation where the
+				marker and referencing path do NOT share the same parent and painting
+				properties are specified both on the parent of the marked path and on the contents
+				of the marker itself. In both cases, the marker's parent specifies 
+				fill="green" stroke="blue" stroke-width="8". For the third test, the marker contents
+				override with stroke="black". For the fourth test, the marker contents
+				override with fill="black". In neither case should you see
+				fill="red" or stroke="blue" or "stroke="purple" on the markers as these properties 
+				are specified on the ancestor of the referencing object or the referencing object itself
+				and thus shouldn't affect the marker.
+			</Paragraph>
+        </OperatorScript>
+    </SVGTestCase>
+	<title id="test-title">painting-marker-02-f.svg</title>
+	<desc id="test-desc">Examines rendering model for markers</desc>
+	<!--======================================================================-->
+	<!--Content of Test Case follows...                  =====================-->
+	<!--======================================================================-->
+	<g id="test-body-content" fill="green" >
+		<defs>
+			<clipPath id="overflowHiddenClip1" clipPathUnits="userSpaceOnUse" >
+				<rect x="0" y="0" width="2" height="2" />                
+			</clipPath>
+			<clipPath id="overflowHiddenClip" clipPathUnits="userSpaceOnUse" >
+				<rect x="0" y="0" width="4" height="4" />                
+			</clipPath>
+		</defs>
+		<!-- ===================================================================== -->
+		<!-- Fill property                                                         -->
+		<!-- ===================================================================== -->
+		<g fill="black" stroke="none" stroke-width="8">
+			<marker id="marker1" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
+				<rect width="10" height="10" />
+			</marker>
+			<path marker-start="url(#marker1)" marker-mid="url(#marker1)" marker-end="url(#marker1)"  d="M 30 60 L 80 60 L 80 110 Z"/>
+			<!-- ===================================================================== -->
+			<!-- Generate the equivalent SVG                                           -->
+			<!-- ===================================================================== -->
+			<g transform="translate(120,0)">
+				<path d="M 30 60 L 80 60 L 80 110 Z"/>
+				<g transform="translate(30,60) scale(8) translate(-1, -1)">
+					<g clip-path="url(#overflowHiddenClip1)">
+						<g transform="scale(0.2, 0.2)">
+							<rect width="10" height="10"/>
+						</g>
+					</g>
+				</g>
+				<g transform="translate(80,60) scale(8) translate(-1, -1)">
+					<g clip-path="url(#overflowHiddenClip1)">
+						<g transform="scale(0.2, 0.2)" >
+							<rect width="10" height="10"/>
+						</g>
+					</g>
+				</g>
+				<g transform="translate(80,110) scale(8) translate(-1, -1)">
+					<g clip-path="url(#overflowHiddenClip1)">
+						<g transform="scale(0.2, 0.2)" >
+							<rect width="10" height="10"/>
+						</g>
+					</g>
+				</g>
+			</g>
+		</g>
+		<!-- ===================================================================== -->
+		<!-- Stroke property                                                       -->
+		<!-- ===================================================================== -->
+		<g fill="none" stroke="black" stroke-width="4">
+			<marker id="marker2" viewBox="0 0 20 20" markerWidth="4" markerHeight="4" refX="10" refY="10" markerUnits="strokeWidth">
+				<rect width="20" height="20"/>
+			</marker>
+			<path marker-start="url(#marker2)" marker-mid="url(#marker2)" marker-end="url(#marker2)"  d="M 270 60 L 320 60 L 320 110 Z"/>
+			<!-- ===================================================================== -->
+			<!-- Generate the equivalent SVG                                           -->
+			<!-- ===================================================================== -->
+			<g transform="translate(120,0)">
+				<path d="M 270 60 L 320 60 L 320 110 Z"/>
+				<!-- ===================================================================== -->
+				<!-- Generate the equivalent SVG                                           -->
+				<!-- ===================================================================== -->
+				<g transform="translate(270,60) scale(4) translate(-2, -2)" >
+					<g clip-path="url(#overflowHiddenClip)">
+						<g transform="scale(0.2, 0.2)" >
+							<rect width="20" height="20"/>
+						</g>
+					</g>
+				</g>
+				<g transform="translate(320,60) scale(4) translate(-2, -2)" >
+					<g clip-path="url(#overflowHiddenClip)">
+						<g transform="scale(0.2, 0.2)" >
+							<rect width="20" height="20"/>
+						</g>
+					</g>
+				</g>
+				<g transform="translate(320, 110) scale(4) translate(-2, -2)">
+					<g clip-path="url(#overflowHiddenClip)">
+						<g transform="scale(0.2, 0.2)" >
+							<rect width="20" height="20"/>
+						</g>
+					</g>
+				</g>
+			</g>
+		</g>
+		<!-- ===================================================================== -->
+		<!-- Define marker element with parents setting painting properties        -->
+		<!-- ===================================================================== -->
+		<g fill="green" stroke="blue" stroke-width="8">
+			<marker id="marker3" viewBox="0 0 20 20" markerWidth="4" markerHeight="4" refX="10" refY="10" markerUnits="strokeWidth">
+				<rect width="20" height="20" stroke="black" />
+			</marker>
+			<marker id="marker4" viewBox="0 0 10 10" markerWidth="4" markerHeight="4" refX="5" refY="5" markerUnits="strokeWidth">
+				<rect width="10" height="10" fill="black" stroke-width="4" />
+			</marker>
+		</g>
+		<!-- ===================================================================== -->
+		<!-- Parent and specified properties                                       -->
+		<!-- ===================================================================== -->
+		<g fill="red" stroke="blue" >
+			<path stroke="purple" stroke-width="4" marker-start="url(#marker3)" marker-mid="url(#marker3)" marker-end="url(#marker3)" d="M 30 190 L 80 190 L 80 240 Z"/>
+			<!-- ===================================================================== -->
+			<!-- Generate the equivalent SVG                                           -->
+			<!-- ===================================================================== -->
+			<g transform="translate(120,0)">
+				<path stroke="purple" stroke-width="4" d="M 30 190 L 80 190 L 80 240 Z"/>
+				<g fill="green" stroke="black" stroke-width="8">
+					<g transform="translate(30,190) scale(4) translate(-2, -2)">
+						<g clip-path="url(#overflowHiddenClip)">
+							<g transform="scale(.2, .2)" >
+								<rect width="20" height="20"/>
+							</g>
+						</g>
+					</g>
+					<g transform="translate(80,190) scale(4) translate(-2, -2)">
+						<g clip-path="url(#overflowHiddenClip)">
+							<g transform="scale(0.2, 0.2)" >
+								<rect width="20" height="20"/>
+							</g>
+						</g>
+					</g>
+					<g transform="translate(80,240) scale(4) translate(-2, -2)">
+						<g clip-path="url(#overflowHiddenClip)">
+							<g transform="scale(0.2, 0.2)" >
+								<rect width="20" height="20"/>
+							</g>
+						</g>
+					</g>
+				</g>
+			</g>
+		</g>
+		<g fill="red" stroke="green" >
+			<path stroke="purple" stroke-width="4" marker-start="url(#marker4)" marker-mid="url(#marker4)" marker-end="url(#marker4)"  d="M 270 190 L 320 190 L 320 240 Z"/>
+			<!-- ===================================================================== -->
+			<!-- Generate the equivalent SVG                                           -->
+			<!-- ===================================================================== -->
+			<g transform="translate(120,0)">
+				<path stroke="purple" stroke-width="4" d="M 270 190 L 320 190 L 320 240 Z"/>
+				<g  fill="black" stroke="blue" stroke-width="4">
+					<g transform="translate(270,190) scale(4) translate(-2, -2)">
+						<g clip-path="url(#overflowHiddenClip)">
+							<g transform="scale(0.4, 0.4)" >
+								<rect width="10" height="10" />
+							</g>
+						</g>
+					</g>
+					<g transform="translate(320,190) scale(4) translate(-2, -2)">
+						<g clip-path="url(#overflowHiddenClip)">
+							<g transform="scale(0.4, 0.4)" >
+								<rect width="10" height="10" />
+							</g>
+						</g>
+					</g>
+					<g transform="translate(320,240) scale(4) translate(-2, -2)">
+						<g clip-path="url(#overflowHiddenClip)">
+							<g transform="scale(0.4, 0.4)" >
+								<rect width="10" height="10" />
+							</g>
+						</g>
+					</g>
+				</g>
+			</g>
+		</g>
+	</g>
+
+</svg>
+
diff --git a/tests/data/svg/samples/misc/11_01-ref.png b/tests/data/svg/suite/gradients/11_01-ref.png
similarity index 100%
rename from tests/data/svg/samples/misc/11_01-ref.png
rename to tests/data/svg/suite/gradients/11_01-ref.png
diff --git a/tests/data/svg/samples/misc/11_01.svg b/tests/data/svg/suite/gradients/11_01.svg
similarity index 100%
rename from tests/data/svg/samples/misc/11_01.svg
rename to tests/data/svg/suite/gradients/11_01.svg
diff --git a/tests/data/svg/samples/librsvg/librsvg-bug345527-arrows.png b/tests/data/svg/suite/markers/librsvg-bug345527-arrows.png
similarity index 100%
rename from tests/data/svg/samples/librsvg/librsvg-bug345527-arrows.png
rename to tests/data/svg/suite/markers/librsvg-bug345527-arrows.png
diff --git a/tests/data/svg/samples/librsvg/librsvg-bug345527-arrows.svg b/tests/data/svg/suite/markers/librsvg-bug345527-arrows.svg
similarity index 100%
rename from tests/data/svg/samples/librsvg/librsvg-bug345527-arrows.svg
rename to tests/data/svg/suite/markers/librsvg-bug345527-arrows.svg
diff --git a/tests/data/svg/samples/librsvg/librsvg-bug403357-marker-overflow-visible.png b/tests/data/svg/suite/markers/librsvg-bug403357-marker-overflow-visible.png
similarity index 100%
rename from tests/data/svg/samples/librsvg/librsvg-bug403357-marker-overflow-visible.png
rename to tests/data/svg/suite/markers/librsvg-bug403357-marker-overflow-visible.png
diff --git a/tests/data/svg/samples/librsvg/librsvg-bug403357-marker-overflow-visible.svg b/tests/data/svg/suite/markers/librsvg-bug403357-marker-overflow-visible.svg
similarity index 100%
rename from tests/data/svg/samples/librsvg/librsvg-bug403357-marker-overflow-visible.svg
rename to tests/data/svg/suite/markers/librsvg-bug403357-marker-overflow-visible.svg
diff --git a/tests/data/svg/samples/misc/linejoin.png b/tests/data/svg/suite/paths/linejoin.png
similarity index 100%
rename from tests/data/svg/samples/misc/linejoin.png
rename to tests/data/svg/suite/paths/linejoin.png
diff --git a/tests/data/svg/samples/misc/linejoin.svg b/tests/data/svg/suite/paths/linejoin.svg
similarity index 100%
rename from tests/data/svg/samples/misc/linejoin.svg
rename to tests/data/svg/suite/paths/linejoin.svg
diff --git a/tests/data/svg/samples/misc/rect-ref.png b/tests/data/svg/suite/paths/rect-ref.png
similarity index 100%
rename from tests/data/svg/samples/misc/rect-ref.png
rename to tests/data/svg/suite/paths/rect-ref.png
diff --git a/tests/data/svg/samples/misc/rect.svg b/tests/data/svg/suite/paths/rect.svg
similarity index 100%
rename from tests/data/svg/samples/misc/rect.svg
rename to tests/data/svg/suite/paths/rect.svg
diff --git a/tests/data/svg/samples/misc/pattern01-ref.png b/tests/data/svg/suite/patterns/pattern01-ref.png
similarity index 100%
rename from tests/data/svg/samples/misc/pattern01-ref.png
rename to tests/data/svg/suite/patterns/pattern01-ref.png
diff --git a/tests/data/svg/samples/misc/pattern01.svg b/tests/data/svg/suite/patterns/pattern01.svg
similarity index 100%
rename from tests/data/svg/samples/misc/pattern01.svg
rename to tests/data/svg/suite/patterns/pattern01.svg



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]