Revision: 63059
https://developer.blender.org/rBL63059
Author: sergey
Date: 2022-10-11 15:00:22 +0200 (Tue, 11 Oct 2022)
Log Message:
-----------
Beginning of automated SVG regression test
This commit contains the data files needed to perform test.
Starting with the very simple tests for the recent fixes in the
io_corve_svg addon which were related on closing path.
The idea is to use same framework as what we use for render tests
to make it easily visible what aspect of SVG changed or broke.
In order to achieve this both .blend and .svg files are used.
The .svg file defines the exact subject of test, and the .blend
file defines camera, and possibly material.
The longer term idea is to have a number of atomic tests for a
specific SVG features to help isolating problematic areas, as
well as a more comprehensive tests to perform QA.
Added Paths:
-----------
trunk/lib/tests/io_tests/svg/
trunk/lib/tests/io_tests/svg/path/
trunk/lib/tests/io_tests/svg/path/path_implicit_close.blend
trunk/lib/tests/io_tests/svg/path/path_implicit_close.svg
trunk/lib/tests/io_tests/svg/path/reference_renders/
trunk/lib/tests/io_tests/svg/path/reference_renders/path_implicit_close.png
trunk/lib/tests/io_tests/svg/util/
trunk/lib/tests/io_tests/svg/util/import_svg.py
Added: trunk/lib/tests/io_tests/svg/path/path_implicit_close.blend
===================================================================
(Binary files differ)
Index: trunk/lib/tests/io_tests/svg/path/path_implicit_close.blend
===================================================================
--- trunk/lib/tests/io_tests/svg/path/path_implicit_close.blend 2022-10-09
18:22:02 UTC (rev 63058)
+++ trunk/lib/tests/io_tests/svg/path/path_implicit_close.blend 2022-10-11
13:00:22 UTC (rev 63059)
Property changes on: trunk/lib/tests/io_tests/svg/path/path_implicit_close.blend
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/lib/tests/io_tests/svg/path/path_implicit_close.svg
===================================================================
--- trunk/lib/tests/io_tests/svg/path/path_implicit_close.svg
(rev 0)
+++ trunk/lib/tests/io_tests/svg/path/path_implicit_close.svg 2022-10-11
13:00:22 UTC (rev 63059)
@@ -0,0 +1,9 @@
+<?xml version="1.0" standalone="no"?>
+<svg width="4cm" height="4cm" viewBox="100 100 500 500"
+ xmlns="http://www.w3.org/2000/svg" version="1.1">
+ <desc>Paths that are closed implicitly by the move command</desc>
+
+ <path d="M 100 100 L 300 100 L 200 300 M 0 0" fill="red" />
+ <path d="M 300 100 L 500 100 L 400 300 m 0 0" fill="blue" />
+ <path d="M 100 300 L 300 300 L 200 500 m 100 -200 l 200 0 l -100 200"
fill="green" />
+</svg>
Added:
trunk/lib/tests/io_tests/svg/path/reference_renders/path_implicit_close.png
===================================================================
(Binary files differ)
Index:
trunk/lib/tests/io_tests/svg/path/reference_renders/path_implicit_close.png
===================================================================
--- trunk/lib/tests/io_tests/svg/path/reference_renders/path_implicit_close.png
2022-10-09 18:22:02 UTC (rev 63058)
+++ trunk/lib/tests/io_tests/svg/path/reference_renders/path_implicit_close.png
2022-10-11 13:00:22 UTC (rev 63059)
Property changes on:
trunk/lib/tests/io_tests/svg/path/reference_renders/path_implicit_close.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/lib/tests/io_tests/svg/util/import_svg.py
===================================================================
--- trunk/lib/tests/io_tests/svg/util/import_svg.py
(rev 0)
+++ trunk/lib/tests/io_tests/svg/util/import_svg.py 2022-10-11 13:00:22 UTC
(rev 63059)
@@ -0,0 +1,11 @@
+import bpy
+from pathlib import Path
+
+
+def import_svg(context):
+ svg_filepath = Path(bpy.data.filepath).with_suffix(".svg")
+ bpy.ops.import_curve.svg(filepath=str(svg_filepath))
+
+
+if __name__ == "__main__":
+ import_svg(bpy.context)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs