[lasem] tests: add filter subsurface position test.



commit b765006c41ec553def8eda3f6902a6fcb8f7e497
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Thu Oct 18 10:19:51 2012 +0200

    tests: add filter subsurface position test.

 tests/data/svg/filter/filter-subsurface-ref.png |  Bin 0 -> 655 bytes
 tests/data/svg/filter/filter-subsurface.svg     |   20 ++++++++++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/tests/data/svg/filter/filter-subsurface-ref.png b/tests/data/svg/filter/filter-subsurface-ref.png
new file mode 100644
index 0000000..dceb76d
Binary files /dev/null and b/tests/data/svg/filter/filter-subsurface-ref.png differ
diff --git a/tests/data/svg/filter/filter-subsurface.svg b/tests/data/svg/filter/filter-subsurface.svg
new file mode 100644
index 0000000..4173da5
--- /dev/null
+++ b/tests/data/svg/filter/filter-subsurface.svg
@@ -0,0 +1,20 @@
+<!--
+	Exercise the filter subsurface creation. Subsurface is an image surface, with integer dimension.
+	Pattern matrix should take care to map the subsurface dimension to the actual filter dimension.
+-->
+
+<svg  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; width="45" height="45">
+  <defs>
+    <filter id="flood" filterUnits="objectBoundingBox" x="0" y="0" width="100%" height="100%">
+      <feFlood flood-color="blue"/>
+    </filter>
+    <g id="square">
+      <rect x="5" y="5" height="9.9" width="9.9" style="stroke:none; fill:none; filter:url(#flood);"/>
+      <path d="M5.5 0 L5.5 5 M0 5.5 L5 5.5 M14.5 15 L14.5 20 M15 14.5 L 20 14.5" stroke-width="1" stroke="black" fill="none" />
+    </g>
+  </defs>
+  <use xlink:href="#square" />
+  <use xlink:href="#square" transform="translate(20.25,0.25)"/>
+  <use xlink:href="#square" transform="translate(0.75,20.75)"/>
+  <use xlink:href="#square" transform="translate(29,29) rotate(45) translate(-10,-10)"/>
+</svg>



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