[gegl] tests: add a test case for color-to-alpha



commit d51229ab058921b18cd03d6eeae0de8521ef3020
Author: Téo Mazars <teo mazars ensimag fr>
Date:   Thu Oct 24 16:25:40 2013 +0200

    tests: add a test case for color-to-alpha

 tests/compositions/Makefile.am                  |    1 +
 tests/compositions/color-to-alpha.xml           |   14 ++++++++++++++
 tests/compositions/reference/color-to-alpha.png |  Bin 0 -> 1074162 bytes
 3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 7f94d91..2ccd48c 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -20,6 +20,7 @@ TESTS = \
   checkerboard.xml                \
   clones.xml                      \
   colors.xml                      \
+  color-to-alpha.xml              \
   composite-transform.xml         \
   edge-laplace.xml                \
   edge-sobel.xml                  \
diff --git a/tests/compositions/color-to-alpha.xml b/tests/compositions/color-to-alpha.xml
new file mode 100644
index 0000000..cd16511
--- /dev/null
+++ b/tests/compositions/color-to-alpha.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+  <node operation='gegl:color-to-alpha'>
+    <params>
+      <param name='color'>rgba(1.0000, 1.0000, 1.0000, 1.0000)</param>
+    </params>
+  </node>
+  <node operation='gegl:load'>
+    <params>
+      <param name='path'>data/car-stack.png</param>
+    </params>
+  </node>
+</gegl>
+
diff --git a/tests/compositions/reference/color-to-alpha.png b/tests/compositions/reference/color-to-alpha.png
new file mode 100644
index 0000000..4b64c3d
Binary files /dev/null and b/tests/compositions/reference/color-to-alpha.png differ


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