[gtk/wip/otte/nodeeditor: 1/12] testsuite: Port gl tests to text-based format



commit e520a80f9258ebad659b2333899b4798e8985698
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..5f56f3e829
--- /dev/null
+++ b/testsuite/gsk/gl/clipped_rounded_clip.txt
@@ -0,0 +1,10 @@
+clip {
+  clip = (60, 80, 60, 70)
+  rounded_clip {
+    clip = (20, 50, 100, 100) 50
+    color {
+      bounds = (20, 50, 100, 100)
+      color = (1, 0, 0, 1)
+    }
+  }
+}
diff --git a/testsuite/gsk/gl/cross_fade.txt b/testsuite/gsk/gl/cross_fade.txt
new file mode 100644
index 0000000000..70eb5184b4
--- /dev/null
+++ b/testsuite/gsk/gl/cross_fade.txt
@@ -0,0 +1,13 @@
+cross_fade {
+  progress = 0.5
+  color {
+    bounds = (0, 0, 200, 200)
+    color = (1, 1, 1, 1)
+  }
+  linear_gradient {
+    bounds = (100, 100, 200, 200)
+    start = (200, 100)
+    end = (200, 300)
+    stops = (0, (1, 0, 0, 1)) (1, (0, 1, 0, 1))
+  }
+}
diff --git a/testsuite/gsk/gl/gradient_clipped.txt b/testsuite/gsk/gl/gradient_clipped.txt
new file mode 100644
index 0000000000..dde5823c02
--- /dev/null
+++ b/testsuite/gsk/gl/gradient_clipped.txt
@@ -0,0 +1,9 @@
+rounded_clip {
+  clip = (0, 0, 50, 100) 25
+  linear_gradient {
+    bounds = (0, 0, 50, 100)
+    start = (0, 0)
+    end = (0, 100)
+    stops = (0, (1, 0, 0, 1)) (1, (0, 0, 1, 1))
+  }
+}
diff --git a/testsuite/gsk/gl/gradient_simple.txt b/testsuite/gsk/gl/gradient_simple.txt
new file mode 100644
index 0000000000..f6cbdd9c28
--- /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, (1, 0, 0, 1)) (1, (0, 0, 1, 1))
+  }
+  linear_gradient {
+    bounds = (50, 0, 50, 100)
+    start = (50, 0)
+    end = (100, 0)
+    stops = (0, (1, 0, 0, 1)) (1, (0, 0, 1, 1))
+  }
+}
diff --git a/testsuite/gsk/gl/opacity_clip.txt b/testsuite/gsk/gl/opacity_clip.txt
new file mode 100644
index 0000000000..fe6ed55c00
--- /dev/null
+++ b/testsuite/gsk/gl/opacity_clip.txt
@@ -0,0 +1,13 @@
+clip {
+  clip = (50, 50, 50, 50)
+  opacity {
+    opacity = 0.4
+    rounded_clip {
+      clip = (50, 50, 100, 100) 50
+      color {
+        bounds = (50, 50, 100, 100)
+        color = (1, 0, 0, 1)
+      }
+    }
+  }
+}
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..9d48a95282
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_blurred_offset.txt
@@ -0,0 +1,8 @@
+outset_shadow {
+  outline = (100, 100, 40, 40) (5.714286, 5.714286) (2.857143, 2.857143) (17.142859, 17.142859) (22.857143, 
22.857143)
+  color = (0, 0, 0, 0.5)
+  dx = 20
+  dy = 20
+  spread = 1
+  blur_radius = 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..3fb1e7e196
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_blurred_simple.txt
@@ -0,0 +1,8 @@
+outset_shadow {
+  outline = (100, 100, 200, 200)
+  color = (0, 0, 0, 1)
+  dx = 0
+  dy = 0
+  spread = 0
+  blur_radius = 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..01b4127d09
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_blurred_small.txt
@@ -0,0 +1,8 @@
+outset_shadow {
+  outline = (100, 100, 40, 40) (5.714286, 5.714286) (2.857143, 2.857143) (17.142859, 17.142859) (22.857143, 
22.857143)
+  color = (0, 0, 0, 0.5)
+  dx = 0
+  dy = 0
+  spread = 1
+  blur_radius = 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..69982be070
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_offset_both.txt
@@ -0,0 +1,8 @@
+outset_shadow {
+  outline = (100, 100, 100, 100)
+  color = (0, 0, 0, 1)
+  dx = -100
+  dy = 100
+  spread = 10
+  blur_radius = 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..8e198a875c
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_offsetx.txt
@@ -0,0 +1,8 @@
+outset_shadow {
+  outline = (100, 100, 100, 100)
+  color = (0, 0, 0, 1)
+  dx = 10
+  dy = 0
+  spread = 10
+  blur_radius = 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..b6b559976e
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_offsety.txt
@@ -0,0 +1,8 @@
+outset_shadow {
+  outline = (100, 100, 100, 100)
+  color = (0, 0, 0, 1)
+  dx = 0
+  dy = 10
+  spread = 10
+  blur_radius = 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..77c909fc26
--- /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 = (0, 0, 0, 0.5)
+  dx = 10
+  dy = 10
+  spread = 30
+  blur_radius = 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..85ffd0b7f6
--- /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 = (0, 0, 0, 0.5)
+  dx = 10
+  dy = 10
+  spread = 30
+  blur_radius = 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..a16f41dc26
--- /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 = (0, 0, 0, 1)
+  dx = 0
+  dy = 0
+  spread = 1
+  blur_radius = 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..92121e5865
--- /dev/null
+++ b/testsuite/gsk/gl/outset_shadow_simple.txt
@@ -0,0 +1,8 @@
+outset_shadow {
+  outline = (100, 100, 100, 100)
+  color = (0, 0, 0, 1)
+  dx = 0
+  dy = 0
+  spread = 10
+  blur_radius = 0
+}
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index f2568a6710..97fe7da379 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -42,22 +42,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]