Added unit tests for color conversion
This commit is contained in:
parent
56ebc67491
commit
823c8c45e3
6 changed files with 81 additions and 2 deletions
11
unittests/color-formats.svg
Normal file
11
unittests/color-formats.svg
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<defs>
|
||||
<linearGradient id="g1" x1="0" y1="0" x2="1" y2="0">
|
||||
<stop offset="0.5" stop-color="rgb(100%, 0%, 0%)" />
|
||||
</linearGradient>
|
||||
<solidColor id="c1" solid-color="navy"/>
|
||||
</defs>
|
||||
<rect id="rect" width="100" height="100" fill="rgb(1,2,3)" stroke="red" />
|
||||
<circle id="circle" cx="100" cy="100" r="30" fill="url(#g1)" stroke="url(#c1)" />
|
||||
<ellipse id="ellipse" cx="100" cy="100" rx="30" ry="30" style="fill:#ffffff" fill="black" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 508 B |
3
unittests/path-sn.svg
Normal file
3
unittests/path-sn.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1781 1142">
|
||||
<path d="m 0,0 l 2.e-4,0 z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 103 B |
Loading…
Add table
Add a link
Reference in a new issue