testsuite: Port gl tests to text-based format

This commit is contained in:
Timm Bäder 2019-03-02 11:15:02 +01:00 committed by Benjamin Otte
parent 50e10cd771
commit 4d98e96124
32 changed files with 140 additions and 1 deletions

View 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.

View 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;
}
}

View 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;
}
}

View 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.

View 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;
}
}
}
}

View 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;
}

View File

@ -0,0 +1,8 @@
outset-shadow {
outline: 100 100 200 200;
color: black;
dx: 0;
dy: 0;
spread: 0;
blur: 40;
}

View 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;
}

View File

@ -0,0 +1,8 @@
outset-shadow {
outline: 100 100 100 100;
color: black;
dx: -100;
dy: 100;
spread: 10;
blur: 0;
}

View File

@ -0,0 +1,8 @@
outset-shadow {
outline: 100 100 100 100;
color: black;
dx: 10;
dy: 0;
spread: 10;
blur: 0;
}

View File

@ -0,0 +1,8 @@
outset-shadow {
outline: 100 100 100 100;
color: black;
dx: 0;
dy: 10;
spread: 10;
blur: 0;
}

View 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;
}

View 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;
}

View 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;
}

View File

@ -0,0 +1,8 @@
outset-shadow {
outline: 100 100 100 100;
color: black;
dx: 0;
dy: 0;
spread: 10;
blur: 0;
}

View File

@ -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',