aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-06-04 16:38:50 +0200
committerjaseg <git@jaseg.de>2021-06-04 16:38:50 +0200
commit6dd7bbc38c4be399455306457d16a7fb36fa88e9 (patch)
treebb3e0619831e6462b5368970332a013e89071b01
parent2d03b014f902dae21c1caa35efa8ad399ee74b78 (diff)
downloadgerbolyze-6dd7bbc38c4be399455306457d16a7fb36fa88e9.tar.gz
gerbolyze-6dd7bbc38c4be399455306457d16a7fb36fa88e9.tar.bz2
gerbolyze-6dd7bbc38c4be399455306457d16a7fb36fa88e9.zip
Add additional test cases
-rw-r--r--svg-flatten/testdata/svg/circle_simple.svg21
-rw-r--r--svg-flatten/testdata/svg/last_dash.svg21
-rw-r--r--svg-flatten/testdata/svg/stroke_dashes_comparison.svg49
3 files changed, 91 insertions, 0 deletions
diff --git a/svg-flatten/testdata/svg/circle_simple.svg b/svg-flatten/testdata/svg/circle_simple.svg
new file mode 100644
index 0000000..1396eb6
--- /dev/null
+++ b/svg-flatten/testdata/svg/circle_simple.svg
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ width="50mm"
+ height="50mm"
+ viewBox="0 0 50 50"
+ version="1.1"
+ id="svg8">
+ <rect width="100%" height="100%" fill="white"/>
+ <ellipse
+ style="fill:none;stroke:#000000;stroke-width:5"
+ id="path850"
+ cx="25"
+ cy="25"
+ rx="20"
+ ry="20" />
+</svg>
diff --git a/svg-flatten/testdata/svg/last_dash.svg b/svg-flatten/testdata/svg/last_dash.svg
new file mode 100644
index 0000000..6d2eaa7
--- /dev/null
+++ b/svg-flatten/testdata/svg/last_dash.svg
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ width="50mm"
+ height="50mm"
+ viewBox="0 0 50 50"
+ version="1.1"
+ id="svg8">
+ <rect width="100%" height="100%" fill="white"/>
+ <ellipse
+ style="fill:none;stroke:#000000;stroke-width:12;stroke-dasharray:18,8"
+ id="path850"
+ cx="25"
+ cy="25"
+ rx="15"
+ ry="15" />
+</svg>
diff --git a/svg-flatten/testdata/svg/stroke_dashes_comparison.svg b/svg-flatten/testdata/svg/stroke_dashes_comparison.svg
new file mode 100644
index 0000000..8de7701
--- /dev/null
+++ b/svg-flatten/testdata/svg/stroke_dashes_comparison.svg
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ width="50mm"
+ height="50mm"
+ viewBox="0 0 50 50"
+ version="1.1"
+ id="svg8">
+ <rect width="100%" height="100%" fill="white"/>
+ <ellipse
+ style="fill:none;stroke:#000000;stroke-width:5;stroke-dasharray:2.5, 2.5"
+ id="path850"
+ cx="25"
+ cy="25"
+ rx="20"
+ ry="20" />
+ <ellipse
+ style="fill:none;stroke:#000000;stroke-width:2.5;stroke-dasharray:1.25, 1.25"
+ id="path850-3"
+ cx="25"
+ cy="25"
+ rx="13.75"
+ ry="13.75" />
+ <ellipse
+ style="fill:none;stroke:#000000;stroke-width:1;stroke-dasharray:4,4"
+ id="path850-3-7"
+ cx="25"
+ cy="25"
+ rx="9.5"
+ ry="9.5" />
+ <ellipse
+ style="fill:none;stroke:#000000;stroke-width:0.5;stroke-dasharray:2,1"
+ id="path850-3-7-5"
+ cx="25"
+ cy="25"
+ rx="7"
+ ry="7" />
+ <ellipse
+ style="fill:none;stroke:#000000;stroke-width:0.2;stroke-dasharray:2.4,2.4"
+ id="path850-3-7-5-5"
+ cx="25"
+ cy="25"
+ rx="5"
+ ry="5" />
+</svg>