gtk/testsuite/gsk/nodeparser
Benjamin Otte a6233ac852 rendernodeparser: Check color values aren't out of range
Use the clamp() API from the previous commit to:

1. Clamp values into range
2. Emit an error if values were out of range

Unlike CSS, which just clamps and doesn't emit an error, we do want to
emit one because we care about colors being correct in our node files.
2024-08-17 18:12:23 +02:00
..
at-rule.errors nodeparser: Add support for cicp color states 2024-08-05 11:11:15 -04:00
at-rule.node nodeparser: Add support for cicp color states 2024-08-05 11:11:15 -04:00
at-rule.ref.node nodeparser: Add support for cicp color states 2024-08-05 11:11:15 -04:00
blend-unknown-mode.errors testsuite: Add tests for the unknown enums 2023-03-05 18:35:02 +01:00
blend-unknown-mode.node testsuite: Add tests for the unknown enums 2023-03-05 18:35:02 +01:00
blend-unknown-mode.ref.node testsuite: Add tests for the unknown enums 2023-03-05 18:35:02 +01:00
blend.node testsuite: Remove serialize-deserialize test 2019-05-21 06:43:59 +02:00
blend.ref.node nodeparser: Change the serialization 2021-04-02 20:38:32 -04:00
border.node nodeparser: Support color states in border nodes 2024-08-06 07:35:00 -04:00
border.ref.node nodeparser: Support color states in border nodes 2024-08-06 07:35:00 -04:00
box-shadow.node nodeparser: Support color states for box shadows 2024-08-08 15:49:55 -04:00
box-shadow.ref.node nodeparser: Support color states for box shadows 2024-08-08 15:49:55 -04:00
color2.node nodeparser: Add support for cicp color states 2024-08-05 11:11:15 -04:00
color2.ref.node nodeparser: Add support for cicp color states 2024-08-05 11:11:15 -04:00
color3.errors nodeparser: Add support for cicp color states 2024-08-05 11:11:15 -04:00
color3.node nodeparser: Add support for cicp color states 2024-08-05 11:11:15 -04:00
color3.ref.node nodeparser: Add support for cicp color states 2024-08-05 11:11:15 -04:00
color4.errors rendernodeparser: Check color values aren't out of range 2024-08-17 18:12:23 +02:00
color4.node rendernodeparser: Check color values aren't out of range 2024-08-17 18:12:23 +02:00
color4.ref.node rendernodeparser: Check color values aren't out of range 2024-08-17 18:12:23 +02:00
color.node nodeparser: Support color states 2024-08-05 11:11:15 -04:00
color.ref.node nodeparser: Support color states 2024-08-05 11:11:15 -04:00
conic-gradient.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
conic-gradient.ref.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
crash1.errors rendernodeparser: Update to new rules 2019-05-21 06:43:59 +02:00
crash1.node
crash1.ref.node rendernodeparser: Update to new rules 2019-05-21 06:43:59 +02:00
crash2.errors rendernodeparser: Update to new rules 2019-05-21 06:43:59 +02:00
crash2.node
crash2.ref.node nodeparser: Change the serialization 2021-04-02 20:38:32 -04:00
crash3.node
crash3.ref.node nodeparser: Change the serialization 2021-04-02 20:38:32 -04:00
crash4.errors testsuite: Redo node-parser 2019-05-21 06:43:59 +02:00
crash4.node
crash4.ref.node rendernodeparser: Update to new rules 2019-05-21 06:43:59 +02:00
debug-fail.errors nodeparser: Move an error check 2023-05-16 18:53:53 +02:00
debug-fail.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
debug-fail.ref.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
debug.node nodeparser: Print debug message before child 2021-03-09 12:15:25 -05:00
empty-blend.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-blend.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-blur.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-blur.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-border.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-border.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-cairo.node rendernodeparser: Parse Cairo nodes 2019-05-26 00:50:13 +02:00
empty-cairo.ref.node rendernodeparser: Handle empty Cairo nodes 2019-05-30 15:32:36 +02:00
empty-clip.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-clip.ref.node nodeparser: Change the serialization 2021-04-02 20:38:32 -04:00
empty-color-matrix.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-color-matrix.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-color.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-color.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-container.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-container.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-cross-fade.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-cross-fade.ref.node nodeparser: Change the serialization 2021-04-02 20:38:32 -04:00
empty-debug.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-debug.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-fill.node path: Tweak printing a bit more 2023-09-17 22:35:33 -04:00
empty-fill.ref.node path: Tweak printing a bit more 2023-09-17 22:35:33 -04:00
empty-inset-shadow.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-inset-shadow.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-linear-gradient.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-linear-gradient.ref.node nodeparser: Change the serialization 2021-04-02 20:38:32 -04:00
empty-mask.node Add more mask node tests 2023-02-14 19:07:01 -05:00
empty-mask.ref.node Add more mask node tests 2023-02-14 19:07:01 -05:00
empty-opacity.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-opacity.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-outset-shadow.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-outset-shadow.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-repeat.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-repeat.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-rounded-clip.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-rounded-clip.ref.node nodeparser: Change the serialization 2021-04-02 20:38:32 -04:00
empty-shadow.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-shadow.ref.node nodeparser: Change the serialization 2021-04-02 20:38:32 -04:00
empty-stroke.node path: Tweak printing a bit more 2023-09-17 22:35:33 -04:00
empty-stroke.ref.node path: Tweak printing a bit more 2023-09-17 22:35:33 -04:00
empty-subsurface.node nodeparser: Print subsurface nodes properly 2024-03-11 01:39:40 +01:00
empty-subsurface.ref.node nodeparser: Print subsurface nodes properly 2024-03-11 01:39:40 +01:00
empty-text.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-text.ref.node Update expected results 2024-06-21 18:45:43 -04:00
empty-texture-scale.node testsuite: Add empty test for new node 2023-03-05 18:33:37 +01:00
empty-texture-scale.ref.node png: Add color state support 2024-07-16 22:04:10 +02:00
empty-texture.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-texture.ref.node png: Add color state support 2024-07-16 22:04:10 +02:00
empty-transform.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
empty-transform.ref.node testsuite: Add empty node tests 2019-05-21 06:43:59 +02:00
fill2.node Adapt tests to new path builder behavior 2023-09-17 08:53:10 -04:00
fill2.ref.node Adapt tests to new path builder behavior 2023-09-17 08:53:10 -04:00
fill.node Add nodeparser tests for fill and stroke nodes 2023-08-07 13:02:57 -04:00
fill.ref.node Add nodeparser tests for fill and stroke nodes 2023-08-07 13:02:57 -04:00
glshader.errors gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
glshader.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
glshader.ref.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
gradient-fail.errors nodeparser: Move an error check 2023-05-16 18:53:53 +02:00
gradient-fail.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
gradient-fail.ref.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
mask-modes.node gsk: Add a node parser test for mask modes 2023-02-14 21:47:54 -05:00
mask-modes.ref.node gsk: Add a node parser test for mask modes 2023-02-14 21:47:54 -05:00
node-names-everywhere.errors testsuite: Add parsing tests for node and texture naming 2023-03-29 03:53:52 +02:00
node-names-everywhere.node testsuite: Add parsing tests for node and texture naming 2023-03-29 03:53:52 +02:00
node-names-everywhere.ref.node testsuite: Add parsing tests for node and texture naming 2023-03-29 03:53:52 +02:00
node-names.node testsuite: Add parsing tests for node and texture naming 2023-03-29 03:53:52 +02:00
radial-gradient-start-end.errors nodeparser: Handle disallowed values for radial gradients 2024-08-11 19:07:40 +02:00
radial-gradient-start-end.node nodeparser: Handle disallowed values for radial gradients 2024-08-11 19:07:40 +02:00
radial-gradient-start-end.ref.node nodeparser: Handle disallowed values for radial gradients 2024-08-11 19:07:40 +02:00
radial-gradient.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
radial-gradient.ref.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
repeating-linear-gradient.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
repeating-linear-gradient.ref.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
repeating-radial-gradient.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
repeating-radial-gradient.ref.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
rounded-rect.node testsuite: Remove serialize-deserialize test 2019-05-21 06:43:59 +02:00
rounded-rect.ref.node testsuite: Remove serialize-deserialize test 2019-05-21 06:43:59 +02:00
shadow-fail.errors nodeparser: Fix SEGV in shadows parsing code 2024-01-03 04:11:35 +01:00
shadow-fail.node nodeparser: Fix SEGV in shadows parsing code 2024-01-03 04:11:35 +01:00
shadow-fail.ref.node nodeparser: Fix SEGV in shadows parsing code 2024-01-03 04:11:35 +01:00
shadow.node nodeparser: Handle shadows with color state 2024-08-09 20:09:31 -04:00
shadow.ref.node nodeparser: Handle shadows with color state 2024-08-09 20:09:31 -04:00
string-error.errors rendernodeparser: Failing to parse a string is an error 2023-03-29 03:53:52 +02:00
string-error.node rendernodeparser: Failing to parse a string is an error 2023-03-29 03:53:52 +02:00
string-error.ref.node rendernodeparser: Failing to parse a string is an error 2023-03-29 03:53:52 +02:00
stroke2.node Add more fill and stroke node tests 2023-08-26 07:39:23 -04:00
stroke2.ref.node Add more fill and stroke node tests 2023-08-26 07:39:23 -04:00
stroke.node Add nodeparser tests for fill and stroke nodes 2023-08-07 13:02:57 -04:00
stroke.ref.node Add nodeparser tests for fill and stroke nodes 2023-08-07 13:02:57 -04:00
testswitch.node Update nodeparser tests 2024-02-27 23:46:33 -05:00
testswitch.ref.node Update expected results 2024-06-21 18:45:43 -04:00
text-color.node nodeparser: Support color states in text nodes 2024-08-10 07:37:01 -04:00
text-color.ref.node nodeparser: Support color states in text nodes 2024-08-10 07:37:01 -04:00
text-fail.errors nodeparser: Fix a font handling mishap 2024-01-26 23:54:58 -05:00
text-fail.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
text-fail.ref.node nodeparser: Fix a font handling mishap 2024-01-26 23:54:58 -05:00
text-font-blob.node Update nodeparser tests 2024-02-27 23:46:33 -05:00
text-font-blob.ref.node Update expected results 2024-06-21 18:45:43 -04:00
text-font-errors.errors testsuite: Fix one nodeparser error 2024-06-14 14:11:54 -04:00
text-font-errors.node Update nodeparser tests 2024-02-27 23:46:33 -05:00
text-font-errors.ref.node Update expected results 2024-06-21 18:45:43 -04:00
text-font-options-error.errors gsk: Accept font options in node files 2024-03-02 18:39:14 -05:00
text-font-options-error.node gsk: Accept font options in node files 2024-03-02 18:39:14 -05:00
text-font-options-error.ref.node Update expected results 2024-06-21 18:45:43 -04:00
text-font-options-errors.ref.node Isolate our nodeparser tests better 2024-06-21 18:17:11 -04:00
text-font-options.node gsk: Accept font options in node files 2024-03-02 18:39:14 -05:00
text-font-options.ref.node Update expected results 2024-06-21 18:45:43 -04:00
text-no-color.node Update expected results 2024-06-21 18:45:43 -04:00
text-no-color.ref.node Update expected results 2024-06-21 18:45:43 -04:00
text.node gsk: Make glyph parsing more flexible 2024-03-01 11:22:28 -05:00
text.ref.node Update expected results 2024-06-21 18:45:43 -04:00
texture-fail.errors gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
texture-fail.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
texture-fail.ref.node png: Add color state support 2024-07-16 22:04:10 +02:00
texture-names.node png: Add color state support 2024-07-16 22:04:10 +02:00
texture-scale-filters.node testsuite/gsk: add explicit dimensions to <svg> elements 2023-08-28 17:14:18 -04:00
texture-scale-filters.ref.node png: Add color state support 2024-07-16 22:04:10 +02:00
texture-scale-unknown-filter.errors testsuite: Add tests for the unknown enums 2023-03-05 18:35:02 +01:00
texture-scale-unknown-filter.node testsuite: Add tests for the unknown enums 2023-03-05 18:35:02 +01:00
texture-scale-unknown-filter.ref.node png: Add color state support 2024-07-16 22:04:10 +02:00
transform-fail.errors gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
transform-fail.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
transform-fail.ref.node gsk: Improve test coverage 2022-07-15 16:41:05 -04:00
widgetfactory.node gsk: Avoid long lines in serialized nodes 2020-10-03 13:10:55 -04:00
widgetfactory.ref.node rendernodeparser: Use gdk_texture_save_to_png_bytes 2021-09-17 00:25:22 +02:00