[gegl] tests: Add test cases for apply-lens
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests: Add test cases for apply-lens
- Date: Tue, 18 Feb 2014 15:03:17 +0000 (UTC)
commit eb51c96d0072d59d58ab39cfbe045a74aae96622
Author: Pascal Giessler <pascal giessler student kit edu>
Date: Sat Feb 15 09:55:37 2014 +0100
tests: Add test cases for apply-lens
tests/compositions/Makefile.am | 3 +++
tests/compositions/apply-lens.xml | 14 ++++++++++++++
tests/compositions/apply-lens2.xml | 15 +++++++++++++++
tests/compositions/apply-lens3.xml | 14 ++++++++++++++
tests/compositions/reference/apply-lens.png | Bin 0 -> 311382 bytes
tests/compositions/reference/apply-lens2.png | Bin 0 -> 212757 bytes
tests/compositions/reference/apply-lens3.png | Bin 0 -> 454266 bytes
7 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 6863d65..eb1d481 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -17,6 +17,9 @@ EXTRA_DIST=$(wildcard $(srcdir)/*.xml) $(wildcard $(srcdir)/reference/*) run-com
TESTS = \
affine-with-negative.xml \
alien-map.xml \
+ apply-lens.xml \
+ apply-lens2.xml \
+ apply-lens3.xml \
checkerboard.xml \
clones.xml \
colors.xml \
diff --git a/tests/compositions/apply-lens.xml b/tests/compositions/apply-lens.xml
new file mode 100644
index 0000000..78d9035
--- /dev/null
+++ b/tests/compositions/apply-lens.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:apply-lens'>
+ <params>
+ <param name='refraction_index'>1.75</param>
+ <param name='keep_surroundings'>true</param>
+ </params>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name='path'>data/car-stack.png</param>
+ </params>
+ </node>
+</gegl>
\ No newline at end of file
diff --git a/tests/compositions/apply-lens2.xml b/tests/compositions/apply-lens2.xml
new file mode 100644
index 0000000..344cac6
--- /dev/null
+++ b/tests/compositions/apply-lens2.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:apply-lens'>
+ <params>
+ <param name='refraction_index'>1.75</param>
+ <param name='keep_surroundings'>false</param>
+ <param name='background_color'>rgba(1.0, 0.0, 1.0, 1.0)</param>
+ </params>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name='path'>data/car-stack.png</param>
+ </params>
+ </node>
+</gegl>
\ No newline at end of file
diff --git a/tests/compositions/apply-lens3.xml b/tests/compositions/apply-lens3.xml
new file mode 100644
index 0000000..4e0c9bb
--- /dev/null
+++ b/tests/compositions/apply-lens3.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:apply-lens'>
+ <params>
+ <param name='refraction_index'>1.0</param>
+ <param name='keep_surroundings'>true</param>
+ </params>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name='path'>data/car-stack.png</param>
+ </params>
+ </node>
+</gegl>
\ No newline at end of file
diff --git a/tests/compositions/reference/apply-lens.png b/tests/compositions/reference/apply-lens.png
new file mode 100644
index 0000000..045284d
Binary files /dev/null and b/tests/compositions/reference/apply-lens.png differ
diff --git a/tests/compositions/reference/apply-lens2.png b/tests/compositions/reference/apply-lens2.png
new file mode 100644
index 0000000..f560a14
Binary files /dev/null and b/tests/compositions/reference/apply-lens2.png differ
diff --git a/tests/compositions/reference/apply-lens3.png b/tests/compositions/reference/apply-lens3.png
new file mode 100644
index 0000000..088ab76
Binary files /dev/null and b/tests/compositions/reference/apply-lens3.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]