From 97e4e57a7389583ab897cbe37b7be2121af00c0b Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sun, 17 Feb 2019 22:46:54 +0100 Subject: [PATCH] add svg import test --- HEADER.js | 2 +- test/visual/assets/vector-effect.svg | 6 ++++++ test/visual/golden/vector-effect.png | Bin 0 -> 423 bytes test/visual/svg_import.js | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 test/visual/assets/vector-effect.svg create mode 100644 test/visual/golden/vector-effect.png diff --git a/HEADER.js b/HEADER.js index d447dd87..2c9ab4d1 100644 --- a/HEADER.js +++ b/HEADER.js @@ -55,7 +55,7 @@ fabric.SHARED_ATTRIBUTES = [ 'stroke', 'stroke-dasharray', 'stroke-linecap', 'stroke-dashoffset', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', - 'id', 'paint-order', + 'id', 'paint-order', 'vector-effect', 'instantiated_by_use', 'clip-path' ]; /* _FROM_SVG_END_ */ diff --git a/test/visual/assets/vector-effect.svg b/test/visual/assets/vector-effect.svg new file mode 100644 index 00000000..6f182b10 --- /dev/null +++ b/test/visual/assets/vector-effect.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/test/visual/golden/vector-effect.png b/test/visual/golden/vector-effect.png new file mode 100644 index 0000000000000000000000000000000000000000..7831d112e743371dafa551e5b02c5e882dc7ee2a GIT binary patch literal 423 zcmeAS@N?(olHy`uVBq!ia0vp^(?FPm4M^HB7Cr(}Y)RhkE)4%caKYZ?lNlHoV?13P zLn`LHy>rmFB|xO@V)sUY@ZjSSo$r?Q95lL-sTy_Mq*+?LYf{Gt?Gu)q(oQE%KjD6# zcQ0h`%hk8`tt!_o+PbwkynZjkKlMbxLffMM3x9sGeBb|YYfe=7^54#}?^dnSE8Vg3 zRo~}(H};%~yCTJtw&q*6dYHkkH!p9QMJoy(QgVuL>EV6vy@PjObt&87-jN^!)78&qol`;+0D+gAk^lez literal 0 HcmV?d00001 diff --git a/test/visual/svg_import.js b/test/visual/svg_import.js index 8db822e6..f9d4b844 100644 --- a/test/visual/svg_import.js +++ b/test/visual/svg_import.js @@ -85,6 +85,7 @@ 'clippath-6', 'clippath-7', 'clippath-9', + 'vector-effect' //'clippath-8', ].map(createTestFromSVG);