gsk: Add another test

Compare clipped repeat nodes. Must skip cairo here
since it blurred the child by scaling after rendering.

Also skip the gl renderer, since it hasn't been fixed
for this yet. ngl passes this test.
This commit is contained in:
Matthias Clasen 2021-03-31 07:49:58 -04:00
parent 6f62107656
commit b5df1299ec
3 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,32 @@
transform {
child: transform {
child: rounded-clip {
child: container {
repeat {
bounds: 0 0 159 34;
child: container {
color {
bounds: 0 0 10 10;
color: rgb(168,168,168);
}
color {
bounds: 10 0 10 10;
color: rgb(84,84,84);
}
color {
bounds: 0 10 10 10;
color: rgb(84,84,84);
}
color {
bounds: 10 10 10 10;
color: rgb(168,168,168);
}
}
}
}
clip: 0 0 159 34 / 6;
}
transform: scale(4, 4);
}
transform: translate(6, 20);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -76,6 +76,7 @@ compare_render_tests = [
'clip-in-rounded-clip2',
'clip-in-rounded-clip3',
'rounded-clip-in-clip-3d', # not really 3d, but cairo fails it
'clipped-repeat-3d-ngl',
'issue-3615'
]
@ -89,7 +90,7 @@ informative_render_tests = [
renderers = [
# name exclude term
[ 'gl', '' ],
[ 'gl', '-ngl' ],
[ 'ngl', '' ],
[ 'broadway', '-3d' ],
[ 'cairo', '-3d' ],