[gegl] operations: Add test case for gegl:rectangle
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations: Add test case for gegl:rectangle
- Date: Mon, 30 Sep 2013 18:46:28 +0000 (UTC)
commit 8c5b19f970f73a79168fc0c4b2e73dda99f2675b
Author: Daniel Sabo <DanielSabo gmail com>
Date: Mon Sep 30 11:26:42 2013 -0700
operations: Add test case for gegl:rectangle
tests/compositions/Makefile.am | 3 +-
tests/compositions/rectangles.xml | 32 +++++++++++++++++++++++++++
tests/compositions/reference/rectangles.png | Bin 0 -> 3074 bytes
3 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 1d6d93c..7271119 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -49,7 +49,8 @@ TESTS = \
run-rotate.xml.sh \
run-simple-scale.xml.sh \
run-softglow.xml.sh \
- run-transform.xml.sh
+ run-transform.xml.sh \
+ run-rectangles.xml.sh
#run-matting-global.xml.sh
#run-matting-global-big.xml.sh
diff --git a/tests/compositions/rectangles.xml b/tests/compositions/rectangles.xml
new file mode 100644
index 0000000..9a03a4b
--- /dev/null
+++ b/tests/compositions/rectangles.xml
@@ -0,0 +1,32 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:over'>
+ <node operation='gegl:rectangle'>
+ <params>
+ <param name='x'>80.000000</param>
+ <param name='y'>90.000000</param>
+ <param name='width'>130.000000</param>
+ <param name='height'>90.000000</param>
+ <param name='color'>rgb(0.2, 0.8, 0.2)</param>
+ </params>
+ </node>
+ </node>
+ <node operation='gegl:over'>
+ <node operation='gegl:rectangle'>
+ <params>
+ <param name='width'>128.000000</param>
+ <param name='height'>128.000000</param>
+ <param name='color'>rgb(0.0, 0.0, 0.0)</param>
+ </params>
+ </node>
+ </node>
+ <node operation='gegl:rectangle'>
+ <params>
+ <param name='x'>0.000000</param>
+ <param name='y'>0.000000</param>
+ <param name='width'>256.000000</param>
+ <param name='height'>256.000000</param>
+ <param name='color'>rgb(1.0, 1.0, 1.0)</param>
+ </params>
+ </node>
+</gegl>
diff --git a/tests/compositions/reference/rectangles.png b/tests/compositions/reference/rectangles.png
new file mode 100644
index 0000000..f413b87
Binary files /dev/null and b/tests/compositions/reference/rectangles.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]