[gtk/wip/otte/nodeeditor2: 31/57] testsuite: Port gl tests to text-based format



commit 4d98e96124c31a5d0e610ace288de4f2e97e2164
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_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/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/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/meson.build                           |   2 +-
 32 files changed, 140 insertions(+), 1 deletion(-)
---
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 fe7614b2d2..6b74e1c144 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -59,7 +59,7 @@ gl_tests = [
 
 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]