[libxml2] Move SVG tests to runtest.c
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Move SVG tests to runtest.c
- Date: Mon, 4 Apr 2022 02:33:56 +0000 (UTC)
commit 95c7f315abf6d1d1380d8dbf3817014d3d91e219
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Sun Apr 3 21:39:14 2022 +0200
Move SVG tests to runtest.c
Also update the test results for the first time since 2000.
Makefile.am | 22 --------------
fuzz/Makefile.am | 1 +
result/SVG/4rects.xml | 10 +++----
result/SVG/a-valid.xml | 2 +-
result/SVG/a-wf.xml | 2 +-
result/SVG/bike-errors.xml | 0
result/SVG/bike.xml | 58 ++++++++++++++++++-------------------
result/SVG/circle.xml | 2 +-
result/SVG/defs.xml | 4 +--
result/SVG/desc.xml | 16 +++++------
result/SVG/ellipse.xml | 2 +-
result/SVG/flower2.xml | 8 +++---
result/SVG/gradient.xml | 4 +--
result/SVG/group01.xml | 2 +-
result/SVG/group02.xml | 2 +-
result/SVG/group03.xml | 11 +++----
result/SVG/image-valid.xml | 2 +-
result/SVG/image-wf.xml | 4 +--
result/SVG/lin-gradient.xml | 2 +-
result/SVG/marker.xml | 14 +++++----
result/SVG/mask.xml | 2 +-
result/SVG/mathswitch.xml | 25 +++++++++-------
result/SVG/parentns.xml | 10 +++----
result/SVG/path01.xml | 2 +-
result/SVG/patternfill.xml | 2 +-
result/SVG/polyline.xml | 2 +-
result/SVG/private.xml | 6 ++--
result/SVG/rad-gradient.xml | 8 +++---
result/SVG/rectangle.xml | 2 +-
result/SVG/richdesc.xml | 14 ++++-----
result/SVG/script.xml | 7 ++---
result/SVG/structure01.xml | 10 +++----
result/SVG/style.xml | 3 +-
result/SVG/switch.xml | 12 ++++----
result/SVG/symbol-use.xml | 19 ++++++++-----
result/SVG/template.xml | 2 +-
result/SVG/text02.xml | 17 +++--------
result/SVG/toap01.xml | 2 +-
result/SVG/toap02.xml | 5 +++-
result/SVG/transform.xml | 29 +++++++++++--------
result/SVG/trivial.xml | 2 +-
result/SVG/twin-gradients.xml | 4 +--
result/SVG/v-template.xml | 6 ++--
result/SVG/viewport-nest.xml | 8 +++---
result/SVG/viewport-transform.xml | 60 ++++++++++++++++++++++-----------------
result/SVG/viewport.xml | 12 ++++----
result/SVG/wf-template.xml | 4 ++-
runtest.c | 3 ++
48 files changed, 224 insertions(+), 222 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index f8e252f1..a3ff6c4a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -193,8 +193,6 @@ asan:
@echo '## rebuilding for ASAN'
./configure CFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security
-Werror=array-bounds -g" CXXFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security
-Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined" CC="clang" CXX="clang++" --disable-shared ;
OptimOff ; $(MAKE) clean ; $(MAKE)
-testall : tests SVGtests
-
tests: $(TEST_DEBUG) $(TEST_CATALOG) $(TEST_REGEXPS) $(TEST_SCHEMATRON) Timingtests $(TEST_VTIME)
$(PYTHON_TESTS)
@(if [ "$(PYTHON_SUBDIR)" != "" ] ; then cd python ; \
$(MAKE) -s tests ; fi)
@@ -275,26 +273,6 @@ Catatests : xmlcatalog$(EXEEXT)
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
rm -f $(srcdir)/result/catalogs/mycatalog)
-SVGtests : xmllint$(EXEEXT)
- @echo "## SVG parsing regression tests"
- -@(for i in $(srcdir)/test/SVG/* ; do \
- name=`basename $$i`; \
- if [ ! -d $$i ] ; then \
- if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \
- echo New test file $$name ; \
- $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \
- grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
- else \
- echo Testing $$name ; \
- $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \
- grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
- diff $(srcdir)/result/SVG/$$name result.$$name ; \
- $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \
- grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
- diff result.$$name result2.$$name ; \
- rm result.$$name result2.$$name ; \
- fi ; fi ; done)
-
Regexptests: testRegexp$(EXEEXT)
@(echo > .memdump)
@echo "## Regexp regression tests"
diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am
index f979a900..d4272417 100644
--- a/fuzz/Makefile.am
+++ b/fuzz/Makefile.am
@@ -15,6 +15,7 @@ XML_SEED_CORPUS_SRC = \
'$(top_srcdir)/test/errors/*.xml' \
'$(top_srcdir)/test/errors10/*.xml' \
'$(top_srcdir)/test/namespaces/*' \
+ '$(top_srcdir)/test/SVG/*.xml' \
'$(top_srcdir)/test/valid/*.xml' \
'$(top_srcdir)/test/VC/*' \
'$(top_srcdir)/test/VCM/*' \
diff --git a/result/SVG/4rects.xml b/result/SVG/4rects.xml
index dfaa02d3..76763510 100644
--- a/result/SVG/4rects.xml
+++ b/result/SVG/4rects.xml
@@ -1,10 +1,10 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Four separate rectangles
+ <desc>Four separate rectangles
</desc>
- <rect width="20" height="60"/>
- <rect width="30" height="70"/>
- <rect width="40" height="80"/>
- <rect width="50" height="90"/>
+ <rect width="20" height="60"/>
+ <rect width="30" height="70"/>
+ <rect width="40" height="80"/>
+ <rect width="50" height="90"/>
</svg>
diff --git a/result/SVG/a-valid.xml b/result/SVG/a-valid.xml
index 8f4a2042..7693cde0 100644
--- a/result/SVG/a-valid.xml
+++ b/result/SVG/a-valid.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>This valid svg document draws a triangle which is a hyperlink
+ <desc>This valid svg document draws a triangle which is a hyperlink
</desc>
<a href="http://www.w3.org">
<p d="M 0 0 L 200 0 L 100 200 Z"/>
diff --git a/result/SVG/a-wf.xml b/result/SVG/a-wf.xml
index 7facfd5c..69ffacb1 100644
--- a/result/SVG/a-wf.xml
+++ b/result/SVG/a-wf.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" standalone="yes"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="4in" height="3in">
- <desc>This well formed svg document draws a triangle which is a hyperlink
+ <desc>This well formed svg document draws a triangle which is a hyperlink
</desc>
<a xml:link="simple" show="replace" actuate="user" href="http://www.w3.org">
<p d="M 0 0 L 200 0 L 100 200 Z"/>
diff --git a/result/SVG/bike.xml b/result/SVG/bike.xml
index 410869da..2ce3060c 100644
--- a/result/SVG/bike.xml
+++ b/result/SVG/bike.xml
@@ -1,44 +1,40 @@
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
+<!--DOCTYPE svg SYSTEM "svg-19990412.dtd"-->
<svg width="4in" height="3in">
- <title>Kona Lavadome mountain bike
+ <title>Kona Lavadome mountain bike
</title>
- <desc>This picture shows a mountain bike, a human-propelled,
- multi-terrain vehicle. While it can be succesfully used on moorland,
- forest, roads, and large hills it is not actually suitable for going
- up mountains.
+ <desc>This picture shows a mountain bike, a human-propelled,
+ multi-terrain vehicle. While it can be succesfully used on moorland,
+ forest, roads, and large hills it is not actually suitable for going
+ up mountains.
</desc>
<g id="bike">
<defs>
- <symbol id="spoke">
- <desc>14/12 gauge double butted spoke</desc>
-<!-- the path data goes here -->
- </symbol>
- <symbol id="hub">
- <desc>black anodised low torsion hub</desc>
-<!--the path data goes here -->
- </symbol>
- <symbol id="rim">
- <desc>twin wall, eyeletted rim</desc>
-<!-- the path data goes here-->
- </symbol>
- <symbol id="cogs">
- <desc>8 speed, wide ratio gearing</desc>
-<!--the path data goes here -->
- </symbol>
- <symbol id="lacing">
- <desc>double cross lacing of 32 spokes</desc>
- </symbol>
+ <symbol id="spoke"><desc>14/12 gauge double butted spoke</desc>
+ <!-- the path data goes here --></symbol>
+
+ <symbol id="hub"><desc>black anodised low torsion hub</desc>
+ <!--the path data goes here --></symbol>
+
+ <symbol id="rim"><desc>twin wall, eyeletted rim</desc>
+ <!-- the path data goes here--></symbol>
+
+ <symbol id="cogs"><desc>8 speed, wide ratio gearing</desc>
+ <!--the path data goes here --></symbol>
+
+ <symbol id="lacing"><desc>double cross lacing of 32 spokes</desc>
+ </symbol>
</defs>
-<!-- the overall bike drawing goes here -->
+ <!-- the overall bike drawing goes here -->
<g id="frontwheel">
- <title>Front wheel</title>
- <desc>The front wheel provides grip, steering and some shock absorption</desc>
- <use href="id(lacing)" style="rotation: 20deg; fillcolor: black"/>
+ <title>Front wheel</title>
+ <desc>The front wheel provides grip, steering and some shock absorption</desc>
+ <use href="id(lacing)" style="rotation: 20deg; fillcolor: black"/>
</g>
- <g id="backwheel"/>
- <g id="frame">
-<!-- and so on -->
+ <g id="backwheel">
+ </g>
+ <g id="frame"><!-- and so on -->
</g>
</g>
</svg>
diff --git a/result/SVG/circle.xml b/result/SVG/circle.xml
index ae7d5455..fc1e7810 100644
--- a/result/SVG/circle.xml
+++ b/result/SVG/circle.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>This is a blue circle with a red outline
+ <desc>This is a blue circle with a red outline
</desc>
<g>
<circle style="fill: blue; stroke: red" cx="200" cy="200" r="100"/>
diff --git a/result/SVG/defs.xml b/result/SVG/defs.xml
index 78c6beb6..92121b80 100644
--- a/result/SVG/defs.xml
+++ b/result/SVG/defs.xml
@@ -7,8 +7,8 @@
<gradientstop offset="30%" color="#39F"/>
</lineargradient>
</defs>
- <desc>Defining things for later use
+ <desc>Defining things for later use
</desc>
-<!-- SVG elements in here would reference/use
+ <!-- SVG elements in here would reference/use
the elements defined in the <defs> -->
</svg>
diff --git a/result/SVG/desc.xml b/result/SVG/desc.xml
index 6fde9660..9ef710fd 100644
--- a/result/SVG/desc.xml
+++ b/result/SVG/desc.xml
@@ -1,14 +1,14 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg SYSTEM "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <g>
- <title>
- Company sales by region
+<g>
+ <title>
+ Company sales by region
</title>
- <desc>
- This is a bar chart which shows
- company sales by region.
+ <desc>
+ This is a bar chart which shows
+ company sales by region.
</desc>
-<!-- Bar chart defined as vector data -->
- </g>
+ <!-- Bar chart defined as vector data -->
+</g>
</svg>
diff --git a/result/SVG/ellipse.xml b/result/SVG/ellipse.xml
index 1f723461..dc65d3e1 100644
--- a/result/SVG/ellipse.xml
+++ b/result/SVG/ellipse.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>This is an ellipse, axis aligned and centered on the origin
+ <desc>This is an ellipse, axis aligned and centered on the origin
</desc>
<g>
<ellipse major="85" minor="45"/>
diff --git a/result/SVG/flower2.xml b/result/SVG/flower2.xml
index f6cd2ba0..f714f432 100644
--- a/result/SVG/flower2.xml
+++ b/result/SVG/flower2.xml
@@ -2,9 +2,9 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="800px" height="800px">
<desc>This sample SVG file draws a flower</desc>
- <g style="transform: matrix(1 0 0 -1 -25.88 798.60); stroke: #000; stroke-width: 1">
- <path style="fill: #1A5466" d="m 242.33 684.19 C 346.44 757.48 271.45 647.38 213.17 641.37
C 271.45 647.38 383.43 575.21 256.71 613.30 C 383.43 575.21 251.04 565.90 205.23 609.68
C 251.04 565.90 265.13 432.88 210.71 557.95 C 265.13 432.88 175.04 531.37 175.67 596.26
C 175.04 531.37 80.63 437.67 138.96 559.82 C 80.63 437.67 100.67 569.80 146.75 611.20
C 100.67 569.80 -31.14 585.98 95.49 617.49 C -31.14 585.98 83.94 652.25 140.24 643.26
C 83.94 652.25 13.98 766.12 113.04 687.55 C 13.98 766.12 137.45 716.63 161.05 668.30
C 137.45 716.63 182.02 842.45 178.39 717.23 C 182.02 842.45 220.90 714.46 193.51 667.46
C 220.90 714.46 346.44 757.48 242.33 684.19 z"/>
- <path style="fill: #34AACD" d="M 235.33 691.19 C 339.44 764.48 264.45 654.38 206.17 648.37
C 264.45 654.38 376.43 582.21 249.71 620.30 C 376.43 582.21 244.04 572.90 198.23 616.68
C 244.04 572.90 258.13 439.88 203.71 564.95 C 258.13 439.88 168.04 538.37 168.67 603.26
C 168.04 538.37 73.63 444.67 131.96 566.82 C 73.63 444.67 93.67 576.80 139.75 618.20
C 93.67 576.80 -38.14 592.98 88.49 624.49 C -38.14 592.98 76.94 659.25 133.24 650.26
C 76.94 659.25 6.98 773.12 106.04 694.55 C 6.98 773.12 130.45 723.63 154.05 675.30
C 130.45 723.63 175.02 849.45 171.39 724.23 C 175.02 849.45 213.90 721.46 186.51 674.46
C 213.90 721.46 339.44 764.48 235.33 691.19 z"/>
- <path style="fill: #F881BF" d="M 199.44 634.43 C 199.44 622.16 189.19 612.21 176.54 612.21
C 163.89 612.21 153.63 622.16 153.63 634.43 C 153.63 646.71 163.89 656.66 176.54 656.66
C 189.19 656.66 199.44 646.71 199.44 634.43 z"/>
+ <g style="transform: matrix(1 0 0 -1 -25.88 798.60); stroke: #000; stroke-width: 1">
+ <path style="fill: #1A5466" d="m 242.33 684.19 C 346.44 757.48 271.45 647.38 213.17 641.37
C 271.45 647.38 383.43 575.21 256.71 613.30 C 383.43 575.21 251.04 565.90 205.23 609.68
C 251.04 565.90 265.13 432.88 210.71 557.95 C 265.13 432.88 175.04 531.37 175.67 596.26
C 175.04 531.37 80.63 437.67 138.96 559.82 C 80.63 437.67 100.67 569.80 146.75 611.20
C 100.67 569.80 -31.14 585.98 95.49 617.49 C -31.14 585.98 83.94 652.25 140.24 643.26 C
83.94 652.25 13.98 766.12 113.04 687.55 C 13.98 766.12 137.45 716.63 161.05 668.30 C
137.45 716.63 182.02 842.45 178.39 717.23 C 182.02 842.45 220.90 714.46 193.51 667.46 C
220.90 714.46 346.44 757.48 242.33 684.19 z"/>
+ <path style="fill: #34AACD" d="M 235.33 691.19 C 339.44 764.48 264.45 654.38 206.17 648.37
C 264.45 654.38 376.43 582.21 249.71 620.30 C 376.43 582.21 244.04 572.90 198.23 616.68
C 244.04 572.90 258.13 439.88 203.71 564.95 C 258.13 439.88 168.04 538.37 168.67 603.26
C 168.04 538.37 73.63 444.67 131.96 566.82 C 73.63 444.67 93.67 576.80 139.75 618.20
C 93.67 576.80 -38.14 592.98 88.49 624.49 C -38.14 592.98 76.94 659.25 133.24 650.26 C
76.94 659.25 6.98 773.12 106.04 694.55 C 6.98 773.12 130.45 723.63 154.05 675.30 C
130.45 723.63 175.02 849.45 171.39 724.23 C 175.02 849.45 213.90 721.46 186.51 674.46 C
213.90 721.46 339.44 764.48 235.33 691.19 z"/>
+ <path style="fill: #F881BF" d="M 199.44 634.43 C 199.44 622.16 189.19 612.21 176.54 612.21
C 163.89 612.21 153.63 622.16 153.63 634.43 C 153.63 646.71 163.89 656.66 176.54 656.66
C 189.19 656.66 199.44 646.71 199.44 634.43 z"/>
</g>
</svg>
diff --git a/result/SVG/gradient.xml b/result/SVG/gradient.xml
index 4570b76d..c572cd8c 100644
--- a/result/SVG/gradient.xml
+++ b/result/SVG/gradient.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Gradient example
+ <desc>Gradient example
</desc>
<g>
<defs>
<lineargradient id="MyGradient">
-<!-- Define linear gradient here -->
+ <!-- Define linear gradient here -->
<gradientstop offset="0%" color="#F60"/>
<gradientstop offset="70%" color="#FF6"/>
</lineargradient>
diff --git a/result/SVG/group01.xml b/result/SVG/group01.xml
index f39ad880..b5a8d0f6 100644
--- a/result/SVG/group01.xml
+++ b/result/SVG/group01.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Two groups, each of two rectangles
+ <desc>Two groups, each of two rectangles
</desc>
<g style="fillcolor:red">
<rect x="100" y="100" width="100" height="100"/>
diff --git a/result/SVG/group02.xml b/result/SVG/group02.xml
index 85e1f523..04542953 100644
--- a/result/SVG/group02.xml
+++ b/result/SVG/group02.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Two named groups
+ <desc>Two named groups
</desc>
<g id="OBJECT1">
<rect x="100" y="100" width="100" height="100"/>
diff --git a/result/SVG/group03.xml b/result/SVG/group03.xml
index 20d75ad4..0fcb5bc4 100644
--- a/result/SVG/group03.xml
+++ b/result/SVG/group03.xml
@@ -1,11 +1,12 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Groups can nest
+ <desc>Groups can nest
</desc>
<g>
- <g>
- <g/>
- </g>
- </g>
+ <g>
+ <g>
+ </g>
+ </g>
+ </g>
</svg>
diff --git a/result/SVG/image-valid.xml b/result/SVG/image-valid.xml
index d45d2297..cfb75477 100644
--- a/result/SVG/image-valid.xml
+++ b/result/SVG/image-valid.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>This graphic links to an external image
+ <desc>This graphic links to an external image
</desc>
<image x="200" y="200" style="width: 100px; height: 100px" href="myimage.png">
<title>My image</title>
diff --git a/result/SVG/image-wf.xml b/result/SVG/image-wf.xml
index e11a12f4..ee1acac1 100644
--- a/result/SVG/image-wf.xml
+++ b/result/SVG/image-wf.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" standalone="yes"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="4in" height="3in">
- <desc>This links to an external image
+ <desc>This links to an external image
</desc>
- <image xml:link="simple" x="200" y="200" style="width: 100px; height: 100px" show="embed" actuate="auto"
href="myimage.png">
+ <image x="200" y="200" style="width: 100px; height: 100px" xml:link="simple" show="embed" actuate="auto"
href="myimage.png">
<title>My image</title>
</image>
</svg>
diff --git a/result/SVG/lin-gradient.xml b/result/SVG/lin-gradient.xml
index 645bdce3..f49f2039 100644
--- a/result/SVG/lin-gradient.xml
+++ b/result/SVG/lin-gradient.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Linear gradient example
+ <desc>Linear gradient example
</desc>
<g>
<defs>
diff --git a/result/SVG/marker.xml b/result/SVG/marker.xml
index 1b41714c..88f3be58 100644
--- a/result/SVG/marker.xml
+++ b/result/SVG/marker.xml
@@ -4,19 +4,21 @@
<defs>
<symbol id="Triangle" min-x="0" min-y="0" max-x="100" max-y="100" ref-x="0" ref-y="50">
<path d="M 0 0 L 0 100 L 100 50 z"/>
- </symbol>
- </defs>
- <desc>An double-headed arrow example using markers
+ </symbol>
+ </defs>
+ <desc>An double-headed arrow example using markers
</desc>
<path d="M0 0">
-<!-- Place an arrowhead rotated 180 degrees at the
+ <!-- Place an arrowhead rotated 180 degrees at the
beginning of the path -->
<marker href="#Triangle" width="200" height="200" style="text-transform: rotate(180)"/>
<data d="M 2000 2000"/>
-<!-- Turn off markers in the middle of the path -->
+
+ <!-- Turn off markers in the middle of the path -->
<marker href=""/>
<data d="L 4000 2000 L 4000 4000"/>
-<!-- Place an arrowhead at the end of the path-->
+
+ <!-- Place an arrowhead at the end of the path-->
<marker href="#Triangle" width="200" height="200"/>
<data d="L 6000 4000"/>
</path>
diff --git a/result/SVG/mask.xml b/result/SVG/mask.xml
index 1204e069..3a2357c3 100644
--- a/result/SVG/mask.xml
+++ b/result/SVG/mask.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Example of using a mask
+ <desc>Example of using a mask
</desc>
<g>
<defs>
diff --git a/result/SVG/mathswitch.xml b/result/SVG/mathswitch.xml
index b2913840..7f9b704b 100644
--- a/result/SVG/mathswitch.xml
+++ b/result/SVG/mathswitch.xml
@@ -1,26 +1,29 @@
<?xml version="1.0" standalone="yes"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="4in" height="3in">
- <desc>This example uses the switch element to provide a
- fallback graphical representation of an equation, if
- MathML is not supported.
+ <desc>This example uses the switch element to provide a
+ fallback graphical representation of an equation, if
+ MathML is not supported.
</desc>
-<!-- The <switch> element will process the first child element
+ <!-- The <switch> element will process the first child element
whose testing attributes evaluate to true.-->
<switch>
-<!-- Process the MathML if the system-required attribute
- evaluates to true (i.e., the user agent supports MathML
+
+ <!-- Process the MathML if the system-required attribute
+ evaluates to true (i.e., the user agent supports MathML
embedded within SVG). -->
<foreignobject system-required="http://www.w3.org/TR/REC-MathML-19980407" width="100" height="50">
-<!-- MathML content goes here -->
+ <!-- MathML content goes here -->
</foreignobject>
-<!-- Else, process the following alternate SVG.
- Note that there are no testing attributes on the <g> element.
- If no testing attributes are provided, it is as if there
+
+ <!-- Else, process the following alternate SVG.
+ Note that there are no testing attributes on the <g> element.
+ If no testing attributes are provided, it is as if there
were testing attributes and they evaluated to true.-->
<g>
-<!-- Draw a red rectangle with a text string on top. -->
+ <!-- Draw a red rectangle with a text string on top. -->
<rect style="fill: red"/>
<text>Formula goes here</text>
</g>
+
</switch>
</svg>
diff --git a/result/SVG/parentns.xml b/result/SVG/parentns.xml
index 5b2ed463..a42053c6 100644
--- a/result/SVG/parentns.xml
+++ b/result/SVG/parentns.xml
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<ABC xmlns="http://parent.name.space" xmlns:svg="http://www.w3.org/Graphics/SVG/1.0">
-<!-- document in the parent namespace -->
+ <!-- document in the parent namespace -->
<svg:svg width="40%" height="40%">
- <svg:rectangle width="43.6" height="31.5"/>
-<!-- svg graphic continues -->
- </svg:svg>
-<!-- document in parent namespace continues -->
+ <svg:rectangle width="43.6" height="31.5"/>
+ <!-- svg graphic continues -->
+ </svg:svg>
+ <!-- document in parent namespace continues -->
</ABC>
diff --git a/result/SVG/path01.xml b/result/SVG/path01.xml
index 646940bd..c64bf5bc 100644
--- a/result/SVG/path01.xml
+++ b/result/SVG/path01.xml
@@ -1,4 +1,4 @@
<?xml version="1.0" standalone="yes"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="4in" height="3in">
- <path d="M 100 100 L 140 100 L 120 140 z"/>
+<path d="M 100 100 L 140 100 L 120 140 z"/>
</svg>
diff --git a/result/SVG/patternfill.xml b/result/SVG/patternfill.xml
index c520ae81..d6c06857 100644
--- a/result/SVG/patternfill.xml
+++ b/result/SVG/patternfill.xml
@@ -3,7 +3,7 @@
<svg width="4in" height="3in">
<defs>
<symbol id="fourstar">
-<!-- Define the pattern using standard graphics elements
+ <!-- Define the pattern using standard graphics elements
such as paths, images, text and shapes -->
</symbol>
</defs>
diff --git a/result/SVG/polyline.xml b/result/SVG/polyline.xml
index 9fa40717..6fc99038 100644
--- a/result/SVG/polyline.xml
+++ b/result/SVG/polyline.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>A sample polyline, and equivalent path
+ <desc>A sample polyline, and equivalent path
</desc>
<polyline verts="20,20 50,100 200,80 70,300"/>
<path d="M20,20 L50,100 L200,80 L70,300"/>
diff --git a/result/SVG/private.xml b/result/SVG/private.xml
index edfe3663..d06034fd 100644
--- a/result/SVG/private.xml
+++ b/result/SVG/private.xml
@@ -7,12 +7,12 @@
<myapp:piece label="Eastern Region" value="2.53"/>
<myapp:piece label="Southern Region" value="3.89"/>
<myapp:piece label="Western Region" value="2.04"/>
-<!-- Other private data goes here -->
+ <!-- Other private data goes here -->
</myapp:piechart>
</private>
</defs>
- <desc>This chart includes private data in another namespace
+ <desc>This chart includes private data in another namespace
</desc>
-<!-- In here would be the actual graphics elements which
+ <!-- In here would be the actual graphics elements which
draw the pie chart -->
</svg>
diff --git a/result/SVG/rad-gradient.xml b/result/SVG/rad-gradient.xml
index d5aadf0c..503cf9d3 100644
--- a/result/SVG/rad-gradient.xml
+++ b/result/SVG/rad-gradient.xml
@@ -1,14 +1,14 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Radial gradient example with three gradient stops
+ <desc>Radial gradient example with three gradient stops
</desc>
<g>
<defs>
<radialgradient id="MyGradient">
- <gradientstop offset="0%" color="white"/>
- <gradientstop offset="50%" color="red"/>
- <gradientstop offset="100%" color="black"/>
+ <gradientstop offset="0%" color="white"/>
+ <gradientstop offset="50%" color="red"/>
+ <gradientstop offset="100%" color="black"/>
</radialgradient>
</defs>
<circle style="fill: url(#MyGradient)" r="42"/>
diff --git a/result/SVG/rectangle.xml b/result/SVG/rectangle.xml
index 919cd23b..2c2a92d3 100644
--- a/result/SVG/rectangle.xml
+++ b/result/SVG/rectangle.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>This is a rectangle
+ <desc>This is a rectangle
</desc>
<g>
<rect x="20" y="30" width="100" height="80"/>
diff --git a/result/SVG/richdesc.xml b/result/SVG/richdesc.xml
index eba1f058..698e40dd 100644
--- a/result/SVG/richdesc.xml
+++ b/result/SVG/richdesc.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" standalone="yes"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="4in" height="3in">
- <desc xmlns:mydoc="http://foo.org/mydoc">
- <mydoc:title>This is an example SVG file</mydoc:title>
- <mydoc:para>The global description uses markup from the
+ <desc xmlns:mydoc="http://foo.org/mydoc">
+ <mydoc:title>This is an example SVG file</mydoc:title>
+ <mydoc:para>The global description uses markup from the
<mydoc:emph>mydoc</mydoc:emph> namespace.</mydoc:para>
- </desc>
- <g>
-<!-- the picture goes here -->
- </g>
+ </desc>
+ <g>
+ <!-- the picture goes here -->
+ </g>
</svg>
diff --git a/result/SVG/script.xml b/result/SVG/script.xml
index c98af0f7..e5af1e92 100644
--- a/result/SVG/script.xml
+++ b/result/SVG/script.xml
@@ -2,10 +2,9 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
<defs>
- <script>
-<![CDATA[
- /* Beep on mouseclick */
- MouseClickHandler() { beep(); }
+ <script><![CDATA[
+ /* Beep on mouseclick */
+ MouseClickHandler() { beep(); }
]]>
</script>
</defs>
diff --git a/result/SVG/structure01.xml b/result/SVG/structure01.xml
index 46af5e80..9cc9b5f4 100644
--- a/result/SVG/structure01.xml
+++ b/result/SVG/structure01.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" standalone="yes"?>
<parent xmlns="http://someplace.org" xmlns:svg="http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
-<!-- parent stuff here -->
- <svg:svg width="5cm" height="8cm">
- <svg:ellipse major="200" minor="130"/>
- </svg:svg>
-<!-- ... -->
+ <!-- parent stuff here -->
+ <svg:svg width="5cm" height="8cm">
+ <svg:ellipse major="200" minor="130"/>
+ </svg:svg>
+ <!-- ... -->
</parent>
diff --git a/result/SVG/style.xml b/result/SVG/style.xml
index 7176912a..ef59bf94 100644
--- a/result/SVG/style.xml
+++ b/result/SVG/style.xml
@@ -2,8 +2,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
<defs>
- <style>
-<![CDATA[
+ <style><![CDATA[
.TitleText { font-size: 16; font-family: Helvetica } ]]>
</style>
</defs>
diff --git a/result/SVG/switch.xml b/result/SVG/switch.xml
index 87eb3646..c7bfd60b 100644
--- a/result/SVG/switch.xml
+++ b/result/SVG/switch.xml
@@ -1,15 +1,17 @@
<?xml version="1.0" standalone="yes"?>
<smil>
<body>
-<!-- The SMIL <switch> element will process the
- first child element which tests true and skip
+ <!-- The SMIL <switch> element will process the
+ first child element which tests true and skip
past all others. -->
<switch>
-<!-- The system-required attribute tests to see if
- the user agent supports SVG. If true, then
+
+ <!-- The system-required attribute tests to see if
+ the user agent supports SVG. If true, then
render the file drawing.svg. -->
<ref system-required="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" type="image/svg"
src="drawing.svg"/>
-<!-- Else, render the alternate image. -->
+
+ <!-- Else, render the alternate image. -->
<img src="alternate_image.jpg"/>
</switch>
</body>
diff --git a/result/SVG/symbol-use.xml b/result/SVG/symbol-use.xml
index a9b395c2..ad059335 100644
--- a/result/SVG/symbol-use.xml
+++ b/result/SVG/symbol-use.xml
@@ -3,20 +3,25 @@
<svg width="4in" height="3in">
<defs>
<symbol id="TemplateObject01">
-<!-- symbol definition here -->
+ <!-- symbol definition here -->
</symbol>
</defs>
- <desc>Examples of inline and referenced content
+
+ <desc>Examples of inline and referenced content
</desc>
-<!-- <g> with inline content -->
+
+ <!-- <g> with inline content -->
<g>
-<!-- Inline content goes here -->
+ <!-- Inline content goes here -->
</g>
-<!-- referenced content -->
+
+ <!-- referenced content -->
<use href="#TemplateObject01"/>
-<!-- <g> with both referenced and inline content -->
+
+ <!-- <g> with both referenced and inline content -->
<g>
<use href="#TemplateObject01"/>
-<!-- Inline content goes here -->
+ <!-- Inline content goes here -->
</g>
+
</svg>
diff --git a/result/SVG/template.xml b/result/SVG/template.xml
index 607cd91f..a452896f 100644
--- a/result/SVG/template.xml
+++ b/result/SVG/template.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="4in" height="3in">
- <desc>This well formed svg document contains a hyperlink
+ <desc>This well formed svg document contains a hyperlink
</desc>
<a xml:link="simple" show="replace" actuate="user" href="http://www.w3.org">
<p d="M 0 0 L 200 0 L 100 200 Z"/>
diff --git a/result/SVG/text02.xml b/result/SVG/text02.xml
index 9656ea51..6dac61f5 100644
--- a/result/SVG/text02.xml
+++ b/result/SVG/text02.xml
@@ -10,16 +10,7 @@
<t href="#T4"/>
</textflow>
</defs>
- <text x="100" y="100" id="T1">
- <tf href="#TF1">123</tf>
- </text>
- <text x="100" y="200" id="T2">
- <tf href="#TF2">ABC</tf>
- </text>
- <text x="150" y="100" id="T3">
- <tf href="#TF1">456</tf>
- </text>
- <text x="150" y="200" id="T4">
- <tf href="#TF2">DEF</tf>
- </text>
-</svg>
+ <text x="100" y="100" id="T1"><tf href="#TF1">123</tf></text>
+ <text x="100" y="200" id="T2"><tf href="#TF2">ABC</tf></text>
+ <text x="150" y="100" id="T3"><tf href="#TF1">456</tf></text>
+ <text x="150" y="200" id="T4"><tf href="#TF2">DEF</tf></text></svg>
diff --git a/result/SVG/toap01.xml b/result/SVG/toap01.xml
index fac024c0..9aa70f8b 100644
--- a/result/SVG/toap01.xml
+++ b/result/SVG/toap01.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Simple text on a path
+ <desc>Simple text on a path
</desc>
<path id="MyPath" style="visibility: hidden" d="M 100 100 C 125 125 175 125 200 100"/>
<text><textpath href="#MyPath"/>Text on path</text>
diff --git a/result/SVG/toap02.xml b/result/SVG/toap02.xml
index c62aa04b..dbd8bcd7 100644
--- a/result/SVG/toap02.xml
+++ b/result/SVG/toap02.xml
@@ -9,8 +9,10 @@
<path d="M 50 0 L 250 200 L 250 0 z"/>
</symbol>
</defs>
- <desc>General graphics on a path
+
+ <desc>General graphics on a path
</desc>
+
<text>
<textpath href="#MyPath"/>
<use href="#Triangle1"/>
@@ -24,4 +26,5 @@
<use href="#Triangle1"/>
<use href="#Triangle2"/>
</text>
+
</svg>
diff --git a/result/SVG/transform.xml b/result/SVG/transform.xml
index db00dbde..c5fd8c90 100644
--- a/result/SVG/transform.xml
+++ b/result/SVG/transform.xml
@@ -1,20 +1,25 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Demonstration of coordinate transforms
+ <desc>Demonstration of coordinate transforms
</desc>
-<!-- The following two text elements will both draw with a
+ <!-- The following two text elements will both draw with a
font height of 12 pixels -->
- <text style="font-size: 12">This prints 12 pixels high.</text>
- <text style="font-size: 12px">This prints 12 pixels high.</text>
-<!-- Now scale the coordinate system by 2. -->
- <g style="transform: scale(2)">
-<!-- The following text will actually draw 24 pixels high
- because each unit in the new coordinate system equals
+ <text style="font-size: 12">This prints 12 pixels high.</text>
+ <text style="font-size: 12px">This prints 12 pixels high.</text>
+
+ <!-- Now scale the coordinate system by 2. -->
+ <g style="transform: scale(2)">
+
+ <!-- The following text will actually draw 24 pixels high
+ because each unit in the new coordinate system equals
2 units in the previous coordinate system. -->
- <text style="font-size: 12">This prints 24 pixels high.</text>
-<!-- The following text will actually still draw 12 pixels high
+ <text style="font-size: 12">This prints 24 pixels high.</text>
+
+ <!-- The following text will actually still draw 12 pixels high
because the CSS unit specifier has been provided. -->
- <text style="font-size: 12px">This prints 12 pixels high.</text>
- </g>
+ <text style="font-size: 12px">This prints 12 pixels high.</text>
+
+ </g>
+
</svg>
diff --git a/result/SVG/trivial.xml b/result/SVG/trivial.xml
index db125834..e30fd293 100644
--- a/result/SVG/trivial.xml
+++ b/result/SVG/trivial.xml
@@ -1,4 +1,4 @@
<?xml version="1.0" standalone="yes"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="4in" height="3in">
-<!-- Insert drawing elements here -->
+ <!-- Insert drawing elements here -->
</svg>
diff --git a/result/SVG/twin-gradients.xml b/result/SVG/twin-gradients.xml
index 5ce25cc2..bd308104 100644
--- a/result/SVG/twin-gradients.xml
+++ b/result/SVG/twin-gradients.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>Gradients apply to leaf nodes
+ <desc>Gradients apply to leaf nodes
</desc>
<g>
<defs>
@@ -13,6 +13,6 @@
<g style="fill: url(#MyGradient)">
<rect width="20" height="15.8"/>
<rect width="35" height="8"/>
- </g>
+ </g>
</g>
</svg>
diff --git a/result/SVG/v-template.xml b/result/SVG/v-template.xml
index 20d19fc9..0d098088 100644
--- a/result/SVG/v-template.xml
+++ b/result/SVG/v-template.xml
@@ -1,6 +1,8 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc/>
- <g/>
+ <desc>
+ </desc>
+ <g>
+ </g>
</svg>
diff --git a/result/SVG/viewport-nest.xml b/result/SVG/viewport-nest.xml
index b6a19a7d..879e21e1 100644
--- a/result/SVG/viewport-nest.xml
+++ b/result/SVG/viewport-nest.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="4in" height="3in">
- <desc>This SVG drawing embeds another one,
- thus establishing a new viewport
+ <desc>This SVG drawing embeds another one,
+ thus establishing a new viewport
</desc>
-<!-- The following statement establishing a new viewport
+ <!-- The following statement establishing a new viewport
and renders SVG drawing B into that viewport -->
<svg style="left: 25%; top: 25%" width="50%" height="50%">
-<!-- drawing B goes here -->
+ <!-- drawing B goes here -->
</svg>
</svg>
diff --git a/result/SVG/viewport-transform.xml b/result/SVG/viewport-transform.xml
index 3a95fbdc..77a75474 100644
--- a/result/SVG/viewport-transform.xml
+++ b/result/SVG/viewport-transform.xml
@@ -1,36 +1,44 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="300px" height="3oopx">
- <desc>Transformation with establishment of a new viewport
+ <desc>Transformation with establishment of a new viewport
</desc>
-<!-- The following two text elements will both draw with a
+ <!-- The following two text elements will both draw with a
font height of 12 pixels -->
- <text style="font-size: 12">This prints 12 pixels high.</text>
- <text style="font-size: 12px">This prints 12 pixels high.</text>
-<!-- Now scale the coordinate system by 2. -->
- <g style="transform: scale(2)">
-<!-- The following text will actually draw 24 pixels high
- because each unit in the new coordinate system equals
+ <text style="font-size: 12">This prints 12 pixels high.</text>
+ <text style="font-size: 12px">This prints 12 pixels high.</text>
+
+ <!-- Now scale the coordinate system by 2. -->
+ <g style="transform: scale(2)">
+
+ <!-- The following text will actually draw 24 pixels high
+ because each unit in the new coordinate system equals
2 units in the previous coordinate system. -->
- <text style="font-size: 12">This prints 24 pixels high.</text>
-<!-- The following text will actually still draw 12 pixels high
+ <text style="font-size: 12">This prints 24 pixels high.</text>
+
+ <!-- The following text will actually still draw 12 pixels high
because the CSS unit specifier has been provided. -->
- <text style="font-size: 12px">This prints 12 pixels high.</text>
- </g>
-<!-- This time, scale the coordinate system by 3. -->
- <g style="transform: scale(3)">
-<!-- Establish a new viewport and thus change the meaning of
+ <text style="font-size: 12px">This prints 12 pixels high.</text>
+ </g>
+
+ <!-- This time, scale the coordinate system by 3. -->
+ <g style="transform: scale(3)">
+
+ <!-- Establish a new viewport and thus change the meaning of
some CSS unit specifiers. -->
- <svg style="left:0; top:0; right:100; bottom:100" width="100%" height="100%">
-<!-- The following two text elements will both draw with a
- font height of 36 screen pixels. The first text element
- defines its height in user coordinates, which have been
- scaled by 3. The second text element defines its height
- in CSS px units, which have been redefined to be three times
- as big as screen pixels due the <svg> element establishing
+ <svg style="left:0; top:0; right:100; bottom:100" width="100%" height="100%">
+
+ <!-- The following two text elements will both draw with a
+ font height of 36 screen pixels. The first text element
+ defines its height in user coordinates, which have been
+ scaled by 3. The second text element defines its height
+ in CSS px units, which have been redefined to be three times
+ as big as screen pixels due the <svg> element establishing
a new viewport. -->
- <text style="font-size: 12">This prints 36 pixels high.</text>
- <text style="font-size: 12px">This prints 36 pixels high.</text>
- </svg>
- </g>
+ <text style="font-size: 12">This prints 36 pixels high.</text>
+ <text style="font-size: 12px">This prints 36 pixels high.</text>
+
+ </svg>
+ </g>
+
</svg>
diff --git a/result/SVG/viewport.xml b/result/SVG/viewport.xml
index 22d1ad3b..98e15aaf 100644
--- a/result/SVG/viewport.xml
+++ b/result/SVG/viewport.xml
@@ -1,8 +1,10 @@
<?xml version="1.0" standalone="yes"?>
<parent xmlns="http://some.url">
-<!-- SVG graphic -->
- <svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="100px" height="200px">
- <path d="M100,100 Q200,400,300,100"/>
-<!-- rest of SVG graphic would go here -->
- </svg>
+
+ <!-- SVG graphic -->
+ <svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="100px" height="200px">
+ <path d="M100,100 Q200,400,300,100"/>
+ <!-- rest of SVG graphic would go here -->
+ </svg>
+
</parent>
diff --git a/result/SVG/wf-template.xml b/result/SVG/wf-template.xml
index d30d8de0..f9593c72 100644
--- a/result/SVG/wf-template.xml
+++ b/result/SVG/wf-template.xml
@@ -1,4 +1,6 @@
<?xml version="1.0" standalone="yes"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/svg-19990412.dtd" width="4in" height="3in">
- <desc/>
+ <desc>
+ </desc>
+
</svg>
diff --git a/runtest.c b/runtest.c
index d4990506..36afb9e8 100644
--- a/runtest.c
+++ b/runtest.c
@@ -4491,6 +4491,9 @@ testDesc testDescriptions[] = {
threadsTest, NULL, NULL, NULL, NULL,
0 },
#endif
+ { "SVG parsing regression tests" ,
+ oldParseTest, "./test/SVG/*.xml", "result/SVG/", "", NULL,
+ 0 },
{NULL, NULL, NULL, NULL, NULL, NULL, 0}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]