Add additional test cases
This commit is contained in:
parent
2d03b014f9
commit
6dd7bbc38c
3 changed files with 91 additions and 0 deletions
21
svg-flatten/testdata/svg/circle_simple.svg
vendored
Normal file
21
svg-flatten/testdata/svg/circle_simple.svg
vendored
Normal file
|
|
@ -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>
|
||||
|
After Width: | Height: | Size: 573 B |
21
svg-flatten/testdata/svg/last_dash.svg
vendored
Normal file
21
svg-flatten/testdata/svg/last_dash.svg
vendored
Normal file
|
|
@ -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>
|
||||
|
After Width: | Height: | Size: 596 B |
49
svg-flatten/testdata/svg/stroke_dashes_comparison.svg
vendored
Normal file
49
svg-flatten/testdata/svg/stroke_dashes_comparison.svg
vendored
Normal file
|
|
@ -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>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue