From 27ee0e4e5adb285a6f7a024ed0685fc19ccfe913 Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl Date: Thu, 12 Oct 2023 15:11:11 +0200 Subject: [PATCH] Add ref images --- crates/resvg/tests/integration/render.rs | 12 ++++++++---- .../tests/painting/color/context-in-marker.png | Bin 0 -> 3799 bytes .../painting/color/context-in-nested-marker.png | Bin 0 -> 4105 bytes .../color/context-in-nested-use-and-marker.png | Bin 0 -> 3799 bytes .../color/context-in-nested-use-and-marker.svg | 4 ++-- .../painting/color/context-in-nested-use.png | Bin 0 -> 2928 bytes .../painting/color/context-in-nested-use.svg | 2 +- .../tests/painting/color/context-in-use.png | Bin 0 -> 2949 bytes .../tests/painting/color/context-in-use.svg | 2 +- .../color/context-without-context-element.png | Bin 0 -> 346 bytes .../color/nested-context-without-color.png | Bin 0 -> 346 bytes .../tests/painting/color/nested-context.png | Bin 0 -> 422 bytes .../tests/painting/color/nested-context.svg | 2 +- 13 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 crates/resvg/tests/tests/painting/color/context-in-marker.png create mode 100644 crates/resvg/tests/tests/painting/color/context-in-nested-marker.png create mode 100644 crates/resvg/tests/tests/painting/color/context-in-nested-use-and-marker.png create mode 100644 crates/resvg/tests/tests/painting/color/context-in-nested-use.png create mode 100644 crates/resvg/tests/tests/painting/color/context-in-use.png create mode 100644 crates/resvg/tests/tests/painting/color/context-without-context-element.png create mode 100644 crates/resvg/tests/tests/painting/color/nested-context-without-color.png create mode 100644 crates/resvg/tests/tests/painting/color/nested-context.png diff --git a/crates/resvg/tests/integration/render.rs b/crates/resvg/tests/integration/render.rs index 15ba54971..e6120132c 100644 --- a/crates/resvg/tests/integration/render.rs +++ b/crates/resvg/tests/integration/render.rs @@ -634,11 +634,15 @@ use crate::render; #[test] fn paint_servers_stop_color_simple_case() { assert_eq!(render("tests/paint-servers/stop-color/simple-case"), 0); } #[test] fn paint_servers_stop_opacity_50percent() { assert_eq!(render("tests/paint-servers/stop-opacity/50percent"), 0); } #[test] fn paint_servers_stop_opacity_simple_case() { assert_eq!(render("tests/paint-servers/stop-opacity/simple-case"), 0); } -#[test] fn painting_color_context_fill_in_marker() { assert_eq!(render("tests/painting/color/context-fill-in-marker"), 0); } -#[test] fn painting_color_context_fill_no_context_element() { assert_eq!(render("tests/painting/color/context-fill-no-context-element"), 0); } -#[test] fn painting_color_context_stroke_in_marker() { assert_eq!(render("tests/painting/color/context-stroke-in-marker"), 0); } -#[test] fn painting_color_context_stroke_no_context_element() { assert_eq!(render("tests/painting/color/context-stroke-no-context-element"), 0); } +#[test] fn painting_color_context_in_marker() { assert_eq!(render("tests/painting/color/context-in-marker"), 0); } +#[test] fn painting_color_context_in_nested_marker() { assert_eq!(render("tests/painting/color/context-in-nested-marker"), 0); } +#[test] fn painting_color_context_in_nested_use_and_marker() { assert_eq!(render("tests/painting/color/context-in-nested-use-and-marker"), 0); } +#[test] fn painting_color_context_in_nested_use() { assert_eq!(render("tests/painting/color/context-in-nested-use"), 0); } +#[test] fn painting_color_context_in_use() { assert_eq!(render("tests/painting/color/context-in-use"), 0); } +#[test] fn painting_color_context_without_context_element() { assert_eq!(render("tests/painting/color/context-without-context-element"), 0); } #[test] fn painting_color_inherit() { assert_eq!(render("tests/painting/color/inherit"), 0); } +#[test] fn painting_color_nested_context_without_color() { assert_eq!(render("tests/painting/color/nested-context-without-color"), 0); } +#[test] fn painting_color_nested_context() { assert_eq!(render("tests/painting/color/nested-context"), 0); } #[test] fn painting_color_simple_case() { assert_eq!(render("tests/painting/color/simple-case"), 0); } #[test] fn painting_display_bBox_impact() { assert_eq!(render("tests/painting/display/bBox-impact"), 0); } #[test] fn painting_display_none_on_clipPath() { assert_eq!(render("tests/painting/display/none-on-clipPath"), 0); } diff --git a/crates/resvg/tests/tests/painting/color/context-in-marker.png b/crates/resvg/tests/tests/painting/color/context-in-marker.png new file mode 100644 index 0000000000000000000000000000000000000000..302877f0d81f5fabac2f94c33cca10770abf2460 GIT binary patch literal 3799 zcmb7H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G* z%LarW(VgM6x^SYBOJ|E|yD>hlRQT~L1@B!Neo|WDpv+g2)(VxJI-w% z1Gnw3Y??LC@RS6Xb!R7l8)#v9;RRvk!bLr7LT+A#nrMG9P{nMjlGs3}?64A{CP55c z+`R#|t4*yU!@A;)N)2|EdpTI0Gd$<}p+;KT>ivk%32)29@v?_|u5BQP7I}O8fJ==- zLP+|KbZw$%S*rFU16T-d&l}l^XawC_(Fuh|%`kn-)c#z`@Ni+|xF0=J4TIbY)8vK{ za1Y~YP_HLFd6L#+rC=poF& z&a@63)?D#`{gNL1U_pZ5*E{5b0h3LX37>4ZIbmo}B$HhkJ$UEbK*Z0M&>X%>Zs$wv z&vyB9UT%8AHWGlbYz|=JVwDv&A%BLSsqe}t7r!XBB>Rc>%FT)v@BHaNQI+pSvC=LZ zb0^6T@#BRV5k;w4k~a)B1m=qSAkvf0d%E5B(SB}-ULVpr{!;ksEwameK>726R<{J& z`eMJVS|0$sumlba=U8yh!*&`4i+k?O)3VQpV`!QG^%^4AOMJStXU6ReNnJ*HvPS0K TnGEoM6ma^aqjk-3Y~sHFUztHY literal 0 HcmV?d00001 diff --git a/crates/resvg/tests/tests/painting/color/context-in-nested-marker.png b/crates/resvg/tests/tests/painting/color/context-in-nested-marker.png new file mode 100644 index 0000000000000000000000000000000000000000..d68f2173b66efbedefaf41a875f918255fe923c8 GIT binary patch literal 4105 zcmZWsc|4Ts`+gX*FD(XTi+n>FV_ zKfExgW11I^go+{abJnM!5=27JcXo1fD`yvx(DVH#^rQ1HLevk=#_-+WewDyk@7MT- z4tqRei}2^>vVZG`@&tou3@F&#!hS=mf9TT$0S!n1&Q-Q1#~N2SVCPY6#{nGC>wp7r zti#yNHNeSQ;RLWSE;jQ>7BmP#>d4TYwP!Oo+&;yFkfp{0-VFI27Al?H+ z#(~Hf;F*U6g@V~+XoZvytd3K+7Ba&7<*fvJSDhSS@B%tN=#&7^mRdPbqy&77L5>=5 zGX;1}XqLmk33wX=TWes3W{W^JRQ~`B7$1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4*yU!@A;)N)2|EdpTI0Gd$<}p+;KT>ivk%32)29@v?_|u5BQP7I}O8fJ==- zLP+|KbZw$%S*rFU16T-d&l}l^XawC_(Fuh|%`kn-)c#z`@Ni+|xF0=J4TIbY)8vK{ za1Y~YP_HLFd6L#+rC=poF& z&a@63)?D#`{gNL1U_pZ5*E{5b0h3LX37>4ZIbmo}B$HhkJ$UEbK*Z0M&>X%>Zs$wv z&vyB9UT%8AHWGlbYz|=JVwDv&A%BLSsqe}t7r!XBB>Rc>%FT)v@BHaNQI+pSvC=LZ zb0^6T@#BRV5k;w4k~a)B1m=qSAkvf0d%E5B(SB}-ULVpr{!;ksEwameK>726R<{J& z`eMJVS|0$sumlba=U8yh!*&`4i+k?O)3VQpV`!QG^%^4AOMJStXU6ReNnJ*HvPS0K TnGEoM6ma^aqjk-3Y~sHFUztHY literal 0 HcmV?d00001 diff --git a/crates/resvg/tests/tests/painting/color/context-in-nested-use-and-marker.svg b/crates/resvg/tests/tests/painting/color/context-in-nested-use-and-marker.svg index 951011e25..3f384bd88 100644 --- a/crates/resvg/tests/tests/painting/color/context-in-nested-use-and-marker.svg +++ b/crates/resvg/tests/tests/painting/color/context-in-nested-use-and-marker.svg @@ -6,11 +6,11 @@ - - + diff --git a/crates/resvg/tests/tests/painting/color/context-in-nested-use.png b/crates/resvg/tests/tests/painting/color/context-in-nested-use.png new file mode 100644 index 0000000000000000000000000000000000000000..fed662cb0b87d514b1728ec44342dddf6e541811 GIT binary patch literal 2928 zcmaJ@e>~IqAAcJnzmE&$*XrWXlCIR4U+2fET-b@WN!B#^aZZt+5hW2FS20~BNf;*E zSiW3E;e7LBN^6+Y(#7sb6UT1Nk9&Wp`(A(C_w(5HetllgAFm(pe|FBt%R^mdoeBUz zefKW6Zvc?PAYWy9nDHt-=>d;=pRf11!*lsr0swygEnY!C{zb`vybPcgfL&jqfORo2X9DwDfNlZkW}yEV==TDx7eGr0l&65Qc%{j;Yp2v;r|9F~c=-Y?6MHA; z{ZUazGq2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z?9CkxfDHhUn$ioA)#PL-v@uqkg_xRwlLAn8*?Z7Xn~#Vr12 z(dB_qqq*^y%u{*M$WG^<_|o!7*>m%dT3UfI;CwnMg=_WjCTvnRXg53j|v~{=nEj0mhUY#`YLkU^i`6SHSh1w$<=JEacpl&lHbXBm#5gkF0U+% zTvdH}(U5byKxd+NP;%^P`Q%j8&{)6DoOJRuWx-Z=x)xe_{~$L_O^GT*D~_; z=)n+XmbADy#IP{?+^l#|visXVn<@8l9yyirYg{OkMJcscyOMjRfRzLevQ?2@lFhJxfi0{XHK0sM)vN{e~@e|W>Ov>CnL=kTn zo=9+zJ+~9~-NzYm>=_9UtdBe1a?tSDthwo+wOWy8SY9hWr!`wo%~j+o`1LsNCG(|X z>tk2|YsA5RpnG|2R{uZ`#&04^^Pkx{U5GQ`tfP4ob&8_Gl<*O1T@?(z^i;i!UcgN5 zOd^T`1b)0LtYT#_+uFY%u7Q`Z7VXnlb_b}7$c-ytA< zX2u+P^{cWa~Cx6P=-$%0n@&nq$KD+bx}tV>)+U@x(nwR?au4 zT0o5lUbV$eIM(;(_+s2Drd#JtIF1nC)w-^NL5r(}+t84UAc~;n$v_RY306;8;Q0I; z7BIYsh$X@t&$lUztDcdJGMAgI;l{6AMp@B#vd3nPYG3{V0g~)PZm2A9V!l_h^-$6E z)R?e-yCsRekv6|S#%l7Qs5mI|Ol)F$y?jx#;V1mxQMVSfiWSMy=7J?_RJC}UxY_8P zInY-?0X}=dAjAT@c<#)9FPeJNFvS0N^d5e+E+g$&opO~hDE&{pugdKX|Cq8#hWuIH M?e67v+l74kFUwS!i2wiq literal 0 HcmV?d00001 diff --git a/crates/resvg/tests/tests/painting/color/context-in-nested-use.svg b/crates/resvg/tests/tests/painting/color/context-in-nested-use.svg index 86771638e..7875a1ef1 100644 --- a/crates/resvg/tests/tests/painting/color/context-in-nested-use.svg +++ b/crates/resvg/tests/tests/painting/color/context-in-nested-use.svg @@ -7,7 +7,7 @@ d="M 100 15 l 50 160 l -130 -100 l 160 0 l -130 100 Z"/> - + diff --git a/crates/resvg/tests/tests/painting/color/context-in-use.png b/crates/resvg/tests/tests/painting/color/context-in-use.png new file mode 100644 index 0000000000000000000000000000000000000000..1df5a7510c2deccd74099f01f37be34f0a7eb9e3 GIT binary patch literal 2949 zcmb`JdsLEn8pmHq(!o@85>3rpTCjjRT~yS(B!cE8Kuw`iCzmuVGd0VybZpF9rWw&r zQ7Q~YCaEM{XYx``1vBCWwP@13g_&gOnv%DD(RR-6IXipKp0nrt-sktc-{0qXp6~nn z>&+*Jko4eYZ~y@G0{jV70DxdMkIphs3E`a}fm;JPD9jJs0bt>u5loiyCGijakJlyO zUm|n{fXo441PdYa02It;0sTS1qz%xX0JO&egMPrE577Py=zIXO0N@A$NU{dvoq!l` zAjS)bBm?9az&{D_KLB`V0p6K_YYE_53^g-)sVTybG(kr7CSxWPDJ4EbYoQ8CB zOdLKe;QAmQHg*T$-%f7hY=_)jXzqhU?%#1uMIc<7saVbWe112YjbejAv+^~eSrD1H zr+^=sY3&>whP|d0P|K;>A6%P(yzuJ1h>SH^6Bkswvt2cD&%QbNh2`s-aIAs*!`Fv4 zHYZ2+>au3&wHEsfYFwHtcU!%s6wL9Ny4RI3Pt|IgAmIzdm|KvQ1Y_2jtcu;`b#tyx~T@oU%+dR09mbk#Wv9j){FlXJ%Pu`f$ z*|$B0es3qQY_~_*t6@D3>Cmlw>eS6tSatp7b;}Tvwx%707OBr;lIO4bxI`vBP#!v$ zwW1r@Q}xFBoZz#%#jsvaRvZ+XrSncl3$c2+tzWF=<+oPtBM<&YH4cH~1Er&$qruIG zVT#7j=O<2nwJe8fuH|%J3+DWG&P3IB(ywenyaf^7K{_@a)BH@GouiM$4D&W;)Nltg z7(2A~?)S3-DPw!(J#XvA%+}qx&WL6w1Pr%oZvIAa>g&4|akuQTW(0qp99r0_ANS3oH)!1>TFVzKiJkJr8)s+{3j{IzpJG1l zUohSOfN81zty}bu*nIk#G*>CU-k)Y9w$PlOI4iPa;uUjP?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g/tests/tests/painting/color/context-in-use.svg b/crates/resvg/tests/tests/painting/color/context-in-use.svg index 2d5eee1e8..bde013db1 100644 --- a/crates/resvg/tests/tests/painting/color/context-in-use.svg +++ b/crates/resvg/tests/tests/painting/color/context-in-use.svg @@ -7,7 +7,7 @@ d="M 100 15 l 50 160 l -130 -100 l 160 0 l -130 100 Z"/> - + diff --git a/crates/resvg/tests/tests/painting/color/context-without-context-element.png b/crates/resvg/tests/tests/painting/color/context-without-context-element.png new file mode 100644 index 0000000000000000000000000000000000000000..4fa749a9e49f5a032a899f85bf01c602ca52c295 GIT binary patch literal 346 zcmeAS@N?(olHy`uVBq!ia0y~yVAKI&7G|JGckpC4ASD{$6XFV_F@X>x!xEqANY#`SnJY({=WH`;V?Kzq?2P6hfY^ KelF{r5}E)hI;`0M literal 0 HcmV?d00001 diff --git a/crates/resvg/tests/tests/painting/color/nested-context-without-color.png b/crates/resvg/tests/tests/painting/color/nested-context-without-color.png new file mode 100644 index 0000000000000000000000000000000000000000..4fa749a9e49f5a032a899f85bf01c602ca52c295 GIT binary patch literal 346 zcmeAS@N?(olHy`uVBq!ia0y~yVAKI&7G|JGckpC4ASD{$6XFV_F@X>x!xEqANY#`SnJY({=WH`;V?Kzq?2P6hfY^ KelF{r5}E)hI;`0M literal 0 HcmV?d00001 diff --git a/crates/resvg/tests/tests/painting/color/nested-context.png b/crates/resvg/tests/tests/painting/color/nested-context.png new file mode 100644 index 0000000000000000000000000000000000000000..c6fc94760b5b38001d31553601668e36980e9a43 GIT binary patch literal 422 zcmeAS@N?(olHy`uVBq!ia0y~yVAKI&7G|JGckpC4Af+4N6XFV_F~ENY1~6)1U{E-~ zps=5T;{yZ7d!Vv;zN@AKDbA80zhDLddx!jj3HuLd-~O8gG+N%%#WAGf*4uN69ETi4 z7%ng;&e+P{E}I%5{^l&-YuPn!)tBQ$ss*iY%r308-6gl~-u;U8?bE|b9cEwQWBj_( z*7Tvwv1@v*n`b0=qkz>`;+ImRPru*Xab5L()t#;#*_pHeXE!e;1AMI(|9Eoys%*vB uWucc?qN7m2ajQ9RZ%8q{y1a`s<3Ia%?!@Ie2h+}jLfg~T&t;ucLK6TMF{oYu literal 0 HcmV?d00001 diff --git a/crates/resvg/tests/tests/painting/color/nested-context.svg b/crates/resvg/tests/tests/painting/color/nested-context.svg index bc4ab062b..5987c6c0e 100644 --- a/crates/resvg/tests/tests/painting/color/nested-context.svg +++ b/crates/resvg/tests/tests/painting/color/nested-context.svg @@ -7,7 +7,7 @@ - +