[gimp] app: Add a test case for the "gimp:flood" operation
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Add a test case for the "gimp:flood" operation
- Date: Sat, 19 Mar 2016 19:41:18 +0000 (UTC)
commit 5084bcae874ba7572e7cd49a0220a105271eddeb
Author: Ell <ell_se yahoo com>
Date: Sat Mar 19 11:38:04 2016 +0000
app: Add a test case for the "gimp:flood" operation
app/operations/gimpoperationflood.c | 14 ++++++++++++++
app/operations/tests/data/flood-input.png | Bin 0 -> 14282 bytes
app/operations/tests/data/flood-output.png | Bin 0 -> 11632 bytes
3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/app/operations/gimpoperationflood.c b/app/operations/gimpoperationflood.c
index 699ce38..19310ca 100644
--- a/app/operations/gimpoperationflood.c
+++ b/app/operations/gimpoperationflood.c
@@ -565,6 +565,18 @@ G_DEFINE_TYPE (GimpOperationFlood, gimp_operation_flood,
#define parent_class gimp_operation_flood_parent_class
+/* GEGL graph for the test case. */
+static const gchar* reference_xml = "<?xml version='1.0' encoding='UTF-8'?>"
+"<gegl>"
+"<node operation='gimp:flood'> </node>"
+"<node operation='gegl:load'>"
+" <params>"
+" <param name='path'>flood-input.png</param>"
+" </params>"
+"</node>"
+"</gegl>";
+
+
static void
gimp_operation_flood_class_init (GimpOperationFloodClass *klass)
{
@@ -589,6 +601,8 @@ gimp_operation_flood_class_init (GimpOperationFloodClass *klass)
"name", "gimp:flood",
"categories", "gimp",
"description", "GIMP Flood operation",
+ "reference-image", "flood-output.png",
+ "reference-composition", reference_xml,
NULL);
operation_class->prepare = gimp_operation_flood_prepare;
diff --git a/app/operations/tests/data/flood-input.png b/app/operations/tests/data/flood-input.png
new file mode 100644
index 0000000..77dd3ae
Binary files /dev/null and b/app/operations/tests/data/flood-input.png differ
diff --git a/app/operations/tests/data/flood-output.png b/app/operations/tests/data/flood-output.png
new file mode 100644
index 0000000..e6e6c28
Binary files /dev/null and b/app/operations/tests/data/flood-output.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]