testsuite: Add tests for the unknown enums

See commit 40e7a265a7
This commit is contained in:
Benjamin Otte
2023-02-13 08:39:54 +01:00
parent a77beb39a1
commit 987b9cec3f
7 changed files with 30 additions and 0 deletions

View File

@@ -142,6 +142,9 @@ endforeach
node_parser_tests = [
'blend.node',
'blend-unknown-mode.errors',
'blend-unknown-mode.node',
'blend-unknown-mode.ref.node',
'border.node',
'color.node',
'conic-gradient.node',
@@ -231,6 +234,9 @@ node_parser_tests = [
'texture-fail.node',
'texture-fail.ref.node',
'texture-fail.ref.errors',
'texture-scale-unknown-filter.errors',
'texture-scale-unknown-filter.node',
'texture-scale-unknown-filter.ref.node',
'transform-fail.node',
'transform-fail.ref.node',
'transform-fail.errors',

View File

@@ -0,0 +1 @@
<data>:2:9-13: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@@ -0,0 +1,3 @@
blend {
mode: diff;
}

View File

@@ -0,0 +1,10 @@
blend {
bottom: color {
bounds: 0 0 50 50;
color: rgb(170,255,0);
}
top: color {
bounds: 0 0 50 50;
color: rgb(255,0,204);
}
}

View File

@@ -0,0 +1 @@
<data>:2:11-29: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@@ -0,0 +1,3 @@
texture-scale {
filter: guess-i-dont-exist;
}

View File

@@ -0,0 +1,6 @@
texture-scale {
bounds: 0 0 50 50;
texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAKUlEQVQYlWP8z3DmPwMaYGQwYUQX\
Y0IXwAUGUCGGoxkYGBiweXAoeAYAz44F3e3U1xUAAAAASUVORK5CYII=\
");
}