Benjamin Otte
9dd050ff30
testsuite: Add parsing tests for node and texture naming
2023-03-29 03:53:52 +02:00
Benjamin Otte
1605b07ff5
rendernodeparser: Failing to parse a string is an error
...
Testcase included.
2023-03-29 03:53:52 +02:00
Benjamin Otte
cc9de42e70
testsuite: Fix broken test
...
The test was referencing a nonexisting image.
Plus, node parsing cannot reference relative URLs.
2023-03-29 03:53:52 +02:00
Matthias Clasen
24720307bb
gsk: Tweak one test to pass
...
Clip away the problematic corners in this
artificial texture scaling test. The GL renderer
has problems getting them perfect.
2023-03-22 00:15:04 -04:00
Matthias Clasen
61b9be1c1a
gsk: Add a test for scaled textures
...
GL and cairo disagree on this one, and have forever.
Whee!
2023-03-22 00:14:16 -04:00
Matthias Clasen
80730a4014
testsuite: Add some texture tests
...
In constrast to our other tests, these use
textures that are big enough to force slicing
with setting GSK_MAX_TEXTURE_SIZE, which we
will use in the following commits to improve
test coverage.
2023-03-19 10:05:52 -04:00
Matthias Clasen
ad84ee8352
tests: Add more tests for texture scale nodes
2023-03-14 01:14:57 -04:00
Benjamin Otte
987b9cec3f
testsuite: Add tests for the unknown enums
...
See commit 40e7a265a7
2023-03-05 18:35:02 +01:00
Benjamin Otte
a77beb39a1
testsuite: Add empty test for new node
2023-03-05 18:33:37 +01:00
Benjamin Otte
0581e38b09
testsuite: Add a test for stripes
...
The GL renderer was creating sripes for nodes that were scaled in
particular ways, probably due to rounding errors.
This testsuite focuses on one of those stripes to make sure they are
gone.
2023-03-04 02:50:38 +01:00
Benjamin Otte
8bbf220fdf
testsuite: Add a test for large scale nodes
...
This test fails if we naively create fullscale
intermediate offscreens. This was fixed in the
previous commits.
This tests the fixes in 22ba6b1f33
(for
cairo) and 3a0152b65f
(for GL).
2023-03-03 11:33:57 -06:00
Matthias Clasen
aec4bfcf3b
gsk: Add a node parser test for mask modes
2023-02-14 21:47:54 -05:00
Matthias Clasen
7e18c2849b
gsk: Add a render test for mask modes
2023-02-14 21:47:54 -05:00
Matthias Clasen
cb0aaf0b2c
Add more mask node tests
2023-02-14 19:07:01 -05:00
Matthias Clasen
c8bfea7aa1
Add a test for mask nodes
2023-02-12 08:35:25 -05:00
Matthias Clasen
238e7ec351
Add a test for scaled textures
2023-02-11 15:09:38 -05:00
Matthias Clasen
3121f88265
build: Drop the install-tests option
...
We no longer use installed tests in CI,
so lets reap the benefit and simplify
our build setup for tests.
2022-12-19 23:12:47 -05:00
Emmanuele Bassi
ce9069c85f
build: Add known to be failing gsk comparison tests
...
The unaligned-offscreen and upside-down-label-3d tests are failing after
upgrading our CI images, seemingly because of some font rendering issue
that is hard to track. Let's use the "failing" testsuite mechanism that
we also use for the reftests.
2022-12-14 17:40:04 +00:00
Matthias Clasen
b441c684ab
gsk: Avoid a crash with negative scales
...
Don't crash when both scale_x and scale_y are -1.
A test is included.
2022-11-20 12:13:02 -05:00
Matthias Clasen
5064a8eac0
gsk: Improve test coverage
2022-07-15 16:41:05 -04:00
Benjamin Otte
0410125f20
nodeparser: Fix parsing of color-matrix node
...
Negative offsets in the color matrix were inverted because it used the
rect parser.
2022-05-18 21:16:33 +02:00
Sebastian Keller
1c733857b3
testsuite: Add unaligned-offscreen test
...
Tests whether text rendered to an offscreen node unaligned with the
pixel grid introduces blurriness.
2022-04-04 23:48:58 +02:00
Benjamin Otte
b28c3ef3d9
renderers: Handle large viewports
...
When large viewports are passed to gsk_renderer_render_texture(), don't
fail (or even return NULL).
Instead, draw multiple tiles and assemble them into a memory texture.
Tests added to the testsuite for this.
2022-02-26 20:35:44 +01:00
Timm Bäder
fd6b3ef5a0
gl: Linear gradients don't support 3d transforms
...
Add another helper similar to the one for transforms, but that only
works on 2d transforms.
Fixes #4501
2021-12-12 12:57:44 +01:00
Matthias Clasen
144f727d5a
Rename ngl to gl
...
We have only one gl renderer now, and it is
a bit odd for it not be called gl.
2021-10-07 13:05:53 -04:00
Matthias Clasen
41b810da7f
Add gsk_transform_to_2d_components
...
This function decomposes a general 2D transform
into skew, scale, rotation and translation.
Tests included.
2021-09-18 02:06:51 -04:00
Matthias Clasen
5742483422
Add more transform tests
...
Test gsk_transform_to_2d.
2021-09-17 22:37:08 -04:00
Matthias Clasen
8c34dd58c0
gsk: Add a test for transform_bounds
2021-09-17 07:43:07 -04:00
Matthias Clasen
5b82cf1145
rendernodeparser: Use gdk_texture_save_to_png_bytes
...
Avoid cairo, and use our own api for saving png data.
Update affected test output.
2021-09-17 00:25:22 +02:00
Benjamin Otte
62954a0338
ngl Fix bottom-right border render failure
...
The wrong index was used for offsetting the bottom border rect.
Test included.
2021-09-16 23:59:37 +02:00
Benjamin Otte
625b5ce91a
testsuite: Port compare_render() to use textures
2021-09-16 23:59:37 +02:00
Benjamin Otte
46bb160923
testuite: Add opacity-overdraw test
...
Tests that overdrawing of content inside an opacity node happens before
the opacity is applied.
This is broken in the GL renderer and causes the opacity.ui reftest to
fail.
2021-09-16 23:59:37 +02:00
Matthias Clasen
4439ff0c12
testsuite: Stop running tests for the gl renderer
...
It does not exist anymore.
2021-09-14 16:12:55 -04:00
Matthias Clasen
ffab67ac70
testsuite: Call g_test_init in test binaries
...
Without it, we mess out on G_DEBUG=fatal-warnings,
so our ci does not alert us that we run a bunch of
tests which spit out warnings.
2021-09-14 16:12:55 -04:00
Matthias Clasen
155a4fac5c
Add vectorized half-float conversion
...
We can't make the -4 versions inline, since
we use ifuncs for them, so make vectorized
versions.
Test included.
2021-09-10 22:17:31 -04:00
Matthias Clasen
ea31ae31c1
tests: Remove an outdated comment
...
It refers to a file that no longer exists.
2021-08-22 12:29:59 -04:00
Matthias Clasen
8390363abe
testsuite: Avoid negative scales with gl renderer
...
The fix in 1c90bb522e
was only for the ngl renderer,
so don't use the test with the gl renderer, until it is
fixed as well.
2021-07-16 07:11:20 -04:00
Benjamin Otte
834d3749c6
testsuite: Add test for crasher
...
Test for the crasher in !4096
2021-07-15 23:43:28 +02:00
Matthias Clasen
fab82a7c25
tests: Add some fp16 tests
2021-07-13 09:03:49 -04:00
Matthias Clasen
809299f9e4
Add some more transform tests
...
Test that gsk_transform_to_affine works.
2021-05-13 19:37:16 -04:00
Matthias Clasen
4d1075a082
testsuite: Reduce the use of g_assert
...
Stop using g_assert() in the gsk tests.
2021-04-12 21:22:46 -04:00
Matthias Clasen
efb5e793a4
nodeparser: Change the serialization
...
Arrange things so that non-child parameters
are always printed before the children. This
greatly helps with readability, which really
suffers when there's hundreds of lines of indented
children between the node start and its parameters.
Update all affected tests.
2021-04-02 20:38:32 -04:00
Matthias Clasen
f2edf40e48
node test: Improve --generate
...
This is a pet peeve of mine: When we call
g_test_init() before handling --generate,
the random seed spew pollutes the output.
Highly annoying. I've fixes many test binaries
over the years, but more keep popping up.
2021-04-02 20:35:39 -04:00
Matthias Clasen
5cb5bdc4eb
testsuite: Sort gsk compare tests
...
Easier to find things that way.
2021-04-01 20:07:13 -04:00
Matthias Clasen
08913deba5
Add some more gsk tests
...
The css-background test contains a node pattern that
is optimized in the ngl renderer.
2021-04-01 20:06:40 -04:00
Matthias Clasen
b5df1299ec
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.
2021-03-31 16:49:31 -04:00
Matthias Clasen
6f62107656
testsuite: Rename next to ngl
...
Use specific names for renderers in the gsk tests.
Otherwise the tests may use the wrong renderer, or
the same renderer twice.
2021-03-31 14:59:43 -04:00
Matthias Clasen
146069058f
Add some tests for node diffing
...
Nothing deep yet, but more can be added.
2021-03-28 10:45:40 -04:00
Matthias Clasen
124f60593b
nodeparser: Print debug message before child
...
This puts the message up top, where it can be seen,
and not at the other end of an endless tree of children.
Update tests to match.
2021-03-09 12:15:25 -05:00
Matthias Clasen
5d30569575
Add some more rounded rect tests
2021-03-07 21:28:19 -05:00