forked from AuroraMiddleware/gtk
testsuite: Port gl tests to text-based format
This commit is contained in:
parent
50e10cd771
commit
4d98e96124
Binary file not shown.
10
testsuite/gsk/gl/clipped_rounded_clip.txt
Normal file
10
testsuite/gsk/gl/clipped_rounded_clip.txt
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
13
testsuite/gsk/gl/cross_fade.txt
Normal file
13
testsuite/gsk/gl/cross_fade.txt
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
9
testsuite/gsk/gl/gradient_clipped.txt
Normal file
9
testsuite/gsk/gl/gradient_clipped.txt
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
14
testsuite/gsk/gl/gradient_simple.txt
Normal file
14
testsuite/gsk/gl/gradient_simple.txt
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
13
testsuite/gsk/gl/opacity_clip.txt
Normal file
13
testsuite/gsk/gl/opacity_clip.txt
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_blurred_offset.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_blurred_offset.txt
Normal file
@ -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;
|
||||||
|
}
|
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_blurred_simple.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_blurred_simple.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
outset-shadow {
|
||||||
|
outline: 100 100 200 200;
|
||||||
|
color: black;
|
||||||
|
dx: 0;
|
||||||
|
dy: 0;
|
||||||
|
spread: 0;
|
||||||
|
blur: 40;
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_blurred_small.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_blurred_small.txt
Normal file
@ -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;
|
||||||
|
}
|
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_offset_both.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_offset_both.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
outset-shadow {
|
||||||
|
outline: 100 100 100 100;
|
||||||
|
color: black;
|
||||||
|
dx: -100;
|
||||||
|
dy: 100;
|
||||||
|
spread: 10;
|
||||||
|
blur: 0;
|
||||||
|
}
|
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_offsetx.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_offsetx.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
outset-shadow {
|
||||||
|
outline: 100 100 100 100;
|
||||||
|
color: black;
|
||||||
|
dx: 10;
|
||||||
|
dy: 0;
|
||||||
|
spread: 10;
|
||||||
|
blur: 0;
|
||||||
|
}
|
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_offsety.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_offsety.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
outset-shadow {
|
||||||
|
outline: 100 100 100 100;
|
||||||
|
color: black;
|
||||||
|
dx: 0;
|
||||||
|
dy: 10;
|
||||||
|
spread: 10;
|
||||||
|
blur: 0;
|
||||||
|
}
|
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_rounded1.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_rounded1.txt
Normal file
@ -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;
|
||||||
|
}
|
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_rounded2.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_rounded2.txt
Normal file
@ -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;
|
||||||
|
}
|
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_rounded_top.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_rounded_top.txt
Normal file
@ -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;
|
||||||
|
}
|
Binary file not shown.
8
testsuite/gsk/gl/outset_shadow_simple.txt
Normal file
8
testsuite/gsk/gl/outset_shadow_simple.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
outset-shadow {
|
||||||
|
outline: 100 100 100 100;
|
||||||
|
color: black;
|
||||||
|
dx: 0;
|
||||||
|
dy: 0;
|
||||||
|
spread: 10;
|
||||||
|
blur: 0;
|
||||||
|
}
|
@ -59,7 +59,7 @@ gl_tests = [
|
|||||||
|
|
||||||
foreach gl_test : gl_tests
|
foreach gl_test : gl_tests
|
||||||
test('GL ' + gl_test[0], compare_render,
|
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')],
|
join_paths(meson.current_source_dir(), 'gl', gl_test[1] + '.gl.png')],
|
||||||
env: [ 'GIO_USE_VOLUME_MONITOR=unix',
|
env: [ 'GIO_USE_VOLUME_MONITOR=unix',
|
||||||
'GSETTINGS_BACKEND=memory',
|
'GSETTINGS_BACKEND=memory',
|
||||||
|
Loading…
Reference in New Issue
Block a user