[gegl] tests: use the clone feature instead of using multiple file loaders



commit 17c3f16033a9e13c9d778b030ba29761d0e72a8d
Author: Téo Mazars <teomazars gmail com>
Date:   Fri Dec 13 19:51:09 2013 +0100

    tests: use the clone feature instead of using multiple file loaders

 tests/compositions/color-reduction.xml |   32 ++++++--------------------------
 1 files changed, 6 insertions(+), 26 deletions(-)
---
diff --git a/tests/compositions/color-reduction.xml b/tests/compositions/color-reduction.xml
index b454dc6..7854f94 100644
--- a/tests/compositions/color-reduction.xml
+++ b/tests/compositions/color-reduction.xml
@@ -27,7 +27,7 @@
        <param name='height'>120</param>
       </params>
     </node>
-    <node operation='gegl:load'>
+    <node operation='gegl:load' id='car-stack'>
       <params>
        <param name='path'>data/car-stack.png</param>
       </params>
@@ -60,11 +60,7 @@
        <param name='height'>120</param>
       </params>
     </node>
-    <node operation='gegl:load'>
-      <params>
-       <param name='path'>data/car-stack.png</param>
-      </params>
-    </node>
+    <clone ref='car-stack'/>
   </node>
   <node operation='svg:src-over'>
     <node operation='gegl:translate'>
@@ -93,11 +89,7 @@
        <param name='height'>192</param>
       </params>
     </node>
-    <node operation='gegl:load'>
-      <params>
-       <param name='path'>data/car-stack.png</param>
-      </params>
-    </node>
+    <clone ref='car-stack'/>
   </node>
   <node operation='svg:src-over'>
     <node operation='gegl:translate'>
@@ -126,11 +118,7 @@
        <param name='height'>192</param>
       </params>
     </node>
-    <node operation='gegl:load'>
-      <params>
-       <param name='path'>data/car-stack.png</param>
-      </params>
-    </node>
+    <clone ref='car-stack'/>
   </node>
   <node operation='svg:src-over'>
     <node operation='gegl:translate'>
@@ -159,11 +147,7 @@
        <param name='height'>192</param>
       </params>
     </node>
-    <node operation='gegl:load'>
-      <params>
-       <param name='path'>data/car-stack.png</param>
-      </params>
-    </node>
+    <clone ref='car-stack'/>
   </node>
   <node operation='svg:src-over'>
     <node operation='gegl:translate'>
@@ -192,11 +176,7 @@
        <param name='height'>192</param>
       </params>
     </node>
-    <node operation='gegl:load'>
-      <params>
-       <param name='path'>data/car-stack.png</param>
-      </params>
-    </node>
+    <clone ref='car-stack'/>
   </node>
 </gegl>
 


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