[gtk/wip/baedert/nodeeditor: 11/16] testsuite: Port gl tests to text-based format



commit a28c76c6834b6759a4d8b8cbb291df2ab5ab8a95
Author: Timm Bäder <mail baedert org>
Date:   Sat Mar 2 11:15:02 2019 +0100

    testsuite: Port gl tests to text-based format

 testsuite/gsk/gl/clipped_cross_fade.gl.png               | Bin 157 -> 0 bytes
 testsuite/gsk/gl/clipped_cross_fade.node                 | Bin 1111 -> 0 bytes
 testsuite/gsk/gl/clipped_rounded_clip.node               | Bin 271 -> 0 bytes
 testsuite/gsk/gl/clipped_rounded_clip.txt                |  10 ++++++++++
 testsuite/gsk/gl/cross_fade.node                         | Bin 302 -> 0 bytes
 testsuite/gsk/gl/cross_fade.txt                          |  13 +++++++++++++
 testsuite/gsk/gl/cross_fade_transformed.gl.png           | Bin 1681 -> 0 bytes
 testsuite/gsk/gl/cross_fade_transformed.node             | Bin 459 -> 0 bytes
 testsuite/gsk/gl/gradient_clipped.node                   | Bin 310 -> 0 bytes
 testsuite/gsk/gl/gradient_clipped.txt                    |   9 +++++++++
 testsuite/gsk/gl/gradient_simple.node                    | Bin 383 -> 0 bytes
 testsuite/gsk/gl/gradient_simple.txt                     |  14 ++++++++++++++
 testsuite/gsk/gl/gradient_transformed.gl.png             | Bin 744 -> 0 bytes
 testsuite/gsk/gl/gradient_transformed.node               | Bin 540 -> 0 bytes
 testsuite/gsk/gl/opacity_clip.node                       | Bin 293 -> 0 bytes
 testsuite/gsk/gl/opacity_clip.txt                        |  13 +++++++++++++
 testsuite/gsk/gl/outset_shadow_blurred_offset.node       | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_blurred_offset.txt        |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_blurred_simple.node       | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_blurred_simple.txt        |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_blurred_simple2.node      | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_blurred_small.node        | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_blurred_small.txt         |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_offset_both.node          | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_offset_both.txt           |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_offsetx.node              | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_offsetx.txt               |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_offsety.node              | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_offsety.txt               |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_rounded1.node             | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_rounded1.txt              |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_rounded2.node             | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_rounded2.txt              |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_rounded_top.node          | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_rounded_top.txt           |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_simple.node               | Bin 208 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_simple.txt                |   8 ++++++++
 testsuite/gsk/gl/outset_shadow_translated.gl.png         | Bin 790 -> 0 bytes
 testsuite/gsk/gl/outset_shadow_translated.node           | Bin 366 -> 0 bytes
 testsuite/gsk/gl/shadow_transform1.gl.png                | Bin 1011 -> 0 bytes
 testsuite/gsk/gl/shadow_transform1.node                  | Bin 1539 -> 0 bytes
 testsuite/gsk/gl/transformed_clipped_rounded_clip.gl.png | Bin 613 -> 0 bytes
 testsuite/gsk/gl/transformed_clipped_rounded_clip.node   | Bin 428 -> 0 bytes
 testsuite/gsk/meson.build                                |   8 +-------
 44 files changed, 140 insertions(+), 7 deletions(-)
---
diff --git a/testsuite/gsk/gl/clipped_rounded_clip.txt b/testsuite/gsk/gl/clipped_rounded_clip.txt
new file mode 100644
index 0000000000..545e6045ac
--- /dev/null
+++ b/testsuite/gsk/gl/clipped_rounded_clip.txt
@@ -0,0 +1,10 @@
+clip {
+  clip: 60 80 60 70;
+  child: rounded-clip {
+    clip: 20 50 100 100 / 50;
+    child: color {
+      bounds: 20 50 100 100;
+      color: red;
+    }
+  }
+}
diff --git a/testsuite/gsk/gl/cross_fade.txt b/testsuite/gsk/gl/cross_fade.txt
new file mode 100644
index 0000000000..6926c77815
--- /dev/null
+++ b/testsuite/gsk/gl/cross_fade.txt
@@ -0,0 +1,13 @@
+cross-fade {
+  progress: 0.5;
+  start: color {
+    bounds: 0 0 200 200;
+    color: white;
+  }
+  end: linear-gradient {
+    bounds: 100 100 200 200;
+    start: 200 100;
+    end: 200 300;
+    stops: 0 red, 1 blue;
+  }
+}
diff --git a/testsuite/gsk/gl/gradient_clipped.txt b/testsuite/gsk/gl/gradient_clipped.txt
new file mode 100644
index 0000000000..e2b469d219
--- /dev/null
+++ b/testsuite/gsk/gl/gradient_clipped.txt
@@ -0,0 +1,9 @@
+rounded-clip {
+  clip: 0 0 50 100 / 25;
+  child: linear-gradient {
+    bounds: 0 0 50 100;
+    start: 0 0;
+    end: 0 100;
+    stops: 0 red, 1 blue;
+  }
+}
diff --git a/testsuite/gsk/gl/gradient_simple.txt b/testsuite/gsk/gl/gradient_simple.txt
new file mode 100644
index 0000000000..a839260116
--- /dev/null
+++ b/testsuite/gsk/gl/gradient_simple.txt
@@ -0,0 +1,14 @@
+container {
+  linear-gradient {
+    bounds: 0 0 50 100;
+    start: 0 0;
+    end: 0 100;
+    stops: 0 red, 1 blue;
+  }
+  linear-gradient {
+    bounds: 50 0 50 100;
+    start: 50 0;
+    end: 100 0;
+    stops: 0 red, 1 blue;
+  }
+}
diff --git a/testsuite/gsk/gl/opacity_clip.txt b/testsuite/gsk/gl/opacity_clip.txt
new file mode 100644
index 0000000000..8b9991f797
--- /dev/null
+++ b/testsuite/gsk/gl/opacity_clip.txt
@@ -0,0 +1,13 @@
+clip {
+  clip: 50 50 50 50;
+  child: opacity {
+    opacity: 0.4;
+    child: rounded-clip {
+      clip: 50 50 100 100 / 50;
+      child: color {
+        bounds: 50 50 100 100;
+        color: red;
+      }
+    }
+  }
+}
diff --git a/testsuite/gsk/gl/outset_shadow_blurred_offset.txt 
b/testsuite/gsk/gl/outset_shadow_blurred_offset.txt
new file mode 100644
index 0000000000..0fb597d742
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_blurred_offset.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 40 40 / 5.714286 2.857143 17.142859 22.857143;
+  color: rgba(0, 0, 0, 0.5);
+  dx: 20;
+  dy: 20;
+  spread: 1;
+  blur: 4;
+}
diff --git a/testsuite/gsk/gl/outset_shadow_blurred_simple.txt 
b/testsuite/gsk/gl/outset_shadow_blurred_simple.txt
new file mode 100644
index 0000000000..aa1731d9a8
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_blurred_simple.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 200 200;
+  color: black;
+  dx: 0;
+  dy: 0;
+  spread: 0;
+  blur: 40;
+}
diff --git a/testsuite/gsk/gl/outset_shadow_blurred_small.txt 
b/testsuite/gsk/gl/outset_shadow_blurred_small.txt
new file mode 100644
index 0000000000..1f8374ab33
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_blurred_small.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 40 40 / 5.714286 2.857143 17.142859 22.857143;
+  color: rgba(0, 0, 0, 0.5);
+  dx: 0;
+  dy: 0;
+  spread: 1;
+  blur: 4;
+}
diff --git a/testsuite/gsk/gl/outset_shadow_offset_both.txt b/testsuite/gsk/gl/outset_shadow_offset_both.txt
new file mode 100644
index 0000000000..1e05bc4d6d
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_offset_both.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 100 100;
+  color: black;
+  dx: -100;
+  dy: 100;
+  spread: 10;
+  blur: 0;
+}
diff --git a/testsuite/gsk/gl/outset_shadow_offsetx.txt b/testsuite/gsk/gl/outset_shadow_offsetx.txt
new file mode 100644
index 0000000000..f78d0b47cd
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_offsetx.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 100 100;
+  color: black;
+  dx: 10;
+  dy: 0;
+  spread: 10;
+  blur: 0;
+}
diff --git a/testsuite/gsk/gl/outset_shadow_offsety.txt b/testsuite/gsk/gl/outset_shadow_offsety.txt
new file mode 100644
index 0000000000..91fb1a7bd5
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_offsety.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 100 100;
+  color: black;
+  dx: 0;
+  dy: 10;
+  spread: 10;
+  blur: 0;
+}
diff --git a/testsuite/gsk/gl/outset_shadow_rounded1.txt b/testsuite/gsk/gl/outset_shadow_rounded1.txt
new file mode 100644
index 0000000000..b59c038696
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_rounded1.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 200 200 / 50 0 50 0;
+  color: rgba(0, 0, 0, 0.5);
+  dx: 10;
+  dy: 10;
+  spread: 30;
+  blur: 0;
+}
diff --git a/testsuite/gsk/gl/outset_shadow_rounded2.txt b/testsuite/gsk/gl/outset_shadow_rounded2.txt
new file mode 100644
index 0000000000..a8b0335e52
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_rounded2.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 200 200 / 0 100 0 100;
+  color: rgba(0, 0, 0, 0.5);
+  dx: 10;
+  dy: 10;
+  spread: 30;
+  blur: 0;
+}
diff --git a/testsuite/gsk/gl/outset_shadow_rounded_top.txt b/testsuite/gsk/gl/outset_shadow_rounded_top.txt
new file mode 100644
index 0000000000..8259016c28
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_rounded_top.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 200 200 / 7 7 0 0;
+  color: black;
+  dx: 0;
+  dy: 0;
+  spread: 1;
+  blur: 0;
+}
diff --git a/testsuite/gsk/gl/outset_shadow_simple.txt b/testsuite/gsk/gl/outset_shadow_simple.txt
new file mode 100644
index 0000000000..45bc2724f6
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_simple.txt
@@ -0,0 +1,8 @@
+outset-shadow {
+  outline: 100 100 100 100;
+  color: black;
+  dx: 0;
+  dy: 0;
+  spread: 10;
+  blur: 0;
+}
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index fcfc1d05f8..6b74e1c144 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -50,22 +50,16 @@ gl_tests = [
   ['outset shadow blurred simple', 'outset_shadow_blurred_simple'],
   ['outset shadow blurred small',  'outset_shadow_blurred_small'],
   ['outset shadow blurred offset', 'outset_shadow_blurred_offset'],
-  ['outset shadow transformed',    'outset_shadow_translated'],
-  ['Transform in Shadow',          'shadow_transform1'],
   ['Crossfade simple',             'cross_fade'],
-  ['Crossfade transformed',        'cross_fade_transformed'],
-  ['Clipped crossfade',            'clipped_cross_fade'],
   ['Clipped rounded clip',         'clipped_rounded_clip'],
-  ['clipped rounded clip2',        'transformed_clipped_rounded_clip'],
   ['gradient simple',              'gradient_simple'],
-  ['gradient transformed',         'gradient_transformed'],
   ['gradient clipped',             'gradient_clipped'],
   ['offscreen opacity',            'opacity_clip'],
 ]
 
 foreach gl_test : gl_tests
   test('GL ' + gl_test[0], compare_render,
-       args: [join_paths(meson.current_source_dir(), 'gl', gl_test[1] + '.node'),
+       args: [join_paths(meson.current_source_dir(), 'gl', gl_test[1] + '.txt'),
               join_paths(meson.current_source_dir(), 'gl', gl_test[1] + '.gl.png')],
        env: [ 'GIO_USE_VOLUME_MONITOR=unix',
               'GSETTINGS_BACKEND=memory',


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