[librsvg: 4/21] Basic reftest for actually using the transform property




commit 6f1521e171aa4ff492bb2e07ebdb511b3ae0b145
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Aug 18 18:53:48 2021 -0500

    Basic reftest for actually using the transform property
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/576>

 tests/src/primitives.rs | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/tests/src/primitives.rs b/tests/src/primitives.rs
index a9204149..9a8553a6 100644
--- a/tests/src/primitives.rs
+++ b/tests/src/primitives.rs
@@ -372,3 +372,17 @@ test_compare_render_output!(
     <svg xmlns="http://www.w3.org/2000/svg"; width="30" height="30">
     </svg>"##,
 );
+
+test_compare_render_output!(
+    transform_property,
+    100,
+    100,
+    br##"<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg"; width="100" height="100">
+  <rect x="50" y="50" width="20" height="20" fill="black"/>
+</svg>"##,
+    br##"<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg"; width="100" height="100">
+  <rect x="10" y="10" width="20" height="20" fill="black" style="transform: translate(40px, 40px);"/>
+</svg>"##,
+);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]