From 6260e18de6c582fc022d039a329bc6e2aa6a34ba Mon Sep 17 00:00:00 2001 From: Lucien Fiorini Date: Fri, 6 Dec 2024 02:48:04 +0100 Subject: [PATCH] Tests: Add fillstyle gradients screenshot test for canvas --- .../canvas-fillstyle-gradients-ref.html | 10 +++++ .../images/canvas-fillstyle-gradients-ref.png | Bin 0 -> 14832 bytes .../input/canvas-fillstyle-gradients.html | 39 ++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 Tests/LibWeb/Screenshot/expected/canvas-fillstyle-gradients-ref.html create mode 100644 Tests/LibWeb/Screenshot/images/canvas-fillstyle-gradients-ref.png create mode 100644 Tests/LibWeb/Screenshot/input/canvas-fillstyle-gradients.html diff --git a/Tests/LibWeb/Screenshot/expected/canvas-fillstyle-gradients-ref.html b/Tests/LibWeb/Screenshot/expected/canvas-fillstyle-gradients-ref.html new file mode 100644 index 00000000000..acc69aa0409 --- /dev/null +++ b/Tests/LibWeb/Screenshot/expected/canvas-fillstyle-gradients-ref.html @@ -0,0 +1,10 @@ + + diff --git a/Tests/LibWeb/Screenshot/images/canvas-fillstyle-gradients-ref.png b/Tests/LibWeb/Screenshot/images/canvas-fillstyle-gradients-ref.png new file mode 100644 index 0000000000000000000000000000000000000000..d7eca627138b86b24d1df5deb5ddbc93435e66a6 GIT binary patch literal 14832 zcmeIZXH-+$_b$86Zq1jvfU9rVo z8|(vyZeIoLNs)zNy3zHaj@0lKf3*Q5%Zi*fwh=LOx+Q6{*&D}{a2t0<`xzK4%jX6= zArRhKwKtU~hMIC3owU8N$l{=@-b`JxunT_Gxt7Q}Q0a~8t=n)(>fK=fy({@K-~ae& zzIh-HYmJ*ezt-B?ZtxuS96$2g?)kyQw)XEP``y2$+@jQwOcwPOaZEnz zdnO9g%lKzM{~&k%`Q1f>#KK^~r^Zh!qMKk5Pa`TK>Lj$EYGa_EqlAaM+pDtOD_W|g z&0Ta8PnPGj=B1-@g{#l*xIxg{Y)JF{vy^9bS^?+F%v=%&iw5noofE-E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|#%*N0SckddLxI7gFM@dR7R&R~ z^D7)a@8gm3gU+}T7DL61L+N0eF+*k>)?AhKwe&VUZ3vQ=(`S4Hnq@#sQOHB(nC|k~ zle4bKCgdBb)hy&Slqr6oec*EBIWwTZ0+SD6&H&^;l|j}4{B@xHhFaq^%A|lvdBA-W ze{Y>Rn8Z)yD2tLdMt9|hJ>DGR65cdB`0@25Pl=e!Q~Xo+^~)TFgD;s&QVKR0a%0k& zqrhU!+9vX~|7Sw8J`$*?|E3=WYC=(%7>Y7Q;aq?({D3Ol)6T_^HsPWv>BH}KlMiR5^4{E?*jy6eAbq17+T6B!g3 zX*J2ttKbLkxCz5!a;G~P2rs(s7j7y5u}b;V|A~12nhp3Qz?}u=6)|0(dH&x^{pIxk zzxs&azjyvW{{G^>NB7^O`@ixb&wm~1zmD`@NBY11ecXS;>i@rCmBEG`5)u&g_!8a) QiZAH0p_xJ1#asXUFIK>Q;s5{u literal 0 HcmV?d00001 diff --git a/Tests/LibWeb/Screenshot/input/canvas-fillstyle-gradients.html b/Tests/LibWeb/Screenshot/input/canvas-fillstyle-gradients.html new file mode 100644 index 00000000000..235180b7424 --- /dev/null +++ b/Tests/LibWeb/Screenshot/input/canvas-fillstyle-gradients.html @@ -0,0 +1,39 @@ + + + +