Benjamin Otte
b16d01e018
testsuite: Replace g_random_*() with g_test_rand_*()
...
... in the whole testsuite
2024-01-03 16:05:25 +01:00
Matthias Clasen
6da5b8cb25
tests: Split off some path utilities
...
Thes can be reused in different test sources.
2023-09-23 15:28:35 -04:00
Matthias Clasen
0dbff14555
Allow circles with radius of zero
...
Not very useful, but we allow rects with
width and height of zero, so lets be consistent.
Curvature is infinite for such contours.
Tests included.
2023-08-28 00:07:50 -04:00
Matthias Clasen
9fdad6d4ee
Make randomized path tests less precise
...
Bump the epsilon in test_split to make these
tests survive longer. They still fail eventually,
unfortunately.
2023-08-26 11:23:02 -04:00
Matthias Clasen
ff40dcffec
Make the measure tests waste less time
...
No need to produce multiple contours, when
the test is just about splitting a single
curve.
2023-08-25 20:23:08 -04:00
Matthias Clasen
eb2fa4195a
Make the measure tests run in ci
...
Marking them as slow has the unintended
side-effect of keeping them from running.
2023-08-25 20:23:08 -04:00
Matthias Clasen
2097b15f9c
Add randomized measure tests
...
Test that lengths behave as expected when
we split paths, do roundtrips through points,
and subset paths.
2023-08-25 20:16:49 -04:00
Matthias Clasen
25e6231a88
path: Switch back to conics
...
Arcs were appealing, but they have a fatal flaw: we can't
split our arcs without changing the ellipse they trace.
That could be fixed by adding an extra parameter, but then
it is no longer any better than conics.
So switch back to conics, which have the advantage that they
are used elsewhere.
2023-08-25 07:33:16 -04:00
Matthias Clasen
d33ed4f9ab
path: Add elliptical arcs
...
Add a new curve type for elliptical arcs
and use it for rounded rectangles and circles.
We use the 'E' command to represent elliptical
arcs in serialized paths.
2023-08-23 12:43:52 -04:00
Matthias Clasen
0aa3356499
Add more path fill tests
...
These also used to live with measure tests.
2023-08-09 22:47:13 -04:00
Matthias Clasen
785b9541f6
gsk: Add tests for GskPath
2023-08-06 21:01:11 -04:00