Matthias Clasen
83d692e2d3
path: Add tests for gsk_path_builder_add methods
...
Check that they all end the current contour.
Fixes : #6011
2023-08-11 07:24:19 -04:00
Matthias Clasen
421365cfc3
Add more path point tests
2023-08-09 23:55:08 -04:00
Matthias Clasen
59c5b41f3d
Cosmetics
2023-08-09 23:48:50 -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
77def95659
Add path fill tests
...
These used to live with the measure tests, but
path_in_fill no longer involves a measure.
2023-08-09 21:50:29 -04:00
Matthias Clasen
2bcc998e90
Add tests for gsk_path_builder_add_segment
...
Test at least some of the special cases:
- start and end point on the same contour
- start and end point on the same segment
- end before start
2023-08-09 07:01:01 -04:00
Jeremy Bícha
4881ef251e
test-calendar: Update timezone name
...
Debian no longer provides the MET timezone
but instead provides geographical region and city name
2023-08-08 15:01:42 -04:00
Matthias Clasen
02a4e5a457
Add compare tests for fill and stroke nodes
2023-08-07 13:02:57 -04:00
Matthias Clasen
a548a91e6d
Add nodeparser tests for fill and stroke nodes
2023-08-07 13:02:57 -04:00
Matthias Clasen
dbcbf0523b
Add tests for GskPathPoint
...
As always, untested code doesn't work...
2023-08-07 08:33:05 -04:00
Matthias Clasen
785b9541f6
gsk: Add tests for GskPath
2023-08-06 21:01:11 -04:00
Matthias Clasen
a4cbabb80f
gsk: Add tests for GskCurve
2023-08-06 20:48:09 -04:00
Matthias Clasen
ba41edf531
gsk: Add tests for GskBoundingBox
2023-08-06 17:16:46 -04:00
Matthias Clasen
d241ec4f3e
Update tests
2023-08-05 15:02:00 -04:00
Matthias Clasen
fef69881a7
4.12.0
2023-08-05 00:01:26 -04:00
Matthias Clasen
d05628c66a
testsuite: Don't rely on default visibility
...
The builder test was relying on default visiblity
for non-static functions. Make it explicit that we
want to export these functions, so the test keeps
working when we change the default visibility.
2023-08-04 06:15:13 -04:00
Matthias Clasen
ea72e7e5b3
reftests: Fix one reftest
...
The xalign property of GtkLabel defaults to 0.5,
meaning that the contents will be centered, which
is not what GtkInscription does.
2023-08-02 16:32:40 +01:00
Matthias Clasen
7a8a27bd60
ci: Mark the clipboard test as flaky
...
Lets give up on trying to run this successfully
in ci. More green in more places!
2023-07-28 09:06:14 +03:00
Patrick Griffis
59941930f7
build: Fix building with introspection disabled and testsuite enabled
...
The headless tests are written in Python and need g-i.
2023-07-23 19:30:30 -05:00
Benjamin Otte
4a8122f685
gdk: Make A8 and A16 formats premultiplied
...
The relevant question here is about details, because we have to choose
if we declare alpha-only formats as having their (nonexistant) color
channels premultiplied or not, so that the code paths using them can do
the right thing.
Because we are premultiplied by default, it makes sense to treat alpha
like that, because then the alpha-only code doesn't need to do
workarounds for straight alpha.
Where this is relevant of course is when expanding the alpha channel
into color channels, where we want to end up with white.
So make sure we do color = alpha there instead of color = 1 like we did
before.
2023-07-22 01:33:44 +02:00
Benjamin Otte
27fbdcbecb
gdk: Add A16_FLOAT and A32_FLOAT formats
...
We need them for mask-only textures.
For tiffs, we convert the formats to RGBA (the idea that tiff can save
everything needs to be buried I guess) as tiffs can't do alpha-only.
2023-07-22 01:33:44 +02:00
Matthias Clasen
7fb6c04e99
Make the new compose table test work
...
This just copies what we do already for other
tests that check parser failures.
2023-07-20 11:48:13 -04:00
Luca Bacci
31727a4ec5
Add test for large compose file
...
See #4990
2023-07-19 17:49:05 +02:00
Benjamin Otte
c179013790
testsuite: Add a test for mask out of bounds effects
...
Inverted alpha masks have an effect on the source, even if the mask
doesn't cover the source at all - or worse, is completely clipped out.
The GL renderer handles this fine, but Cairo and Vulkan had
optimizations that got this wrong.
2023-07-03 22:02:44 +02:00
Benjamin Otte
c6eb7fd483
gsk: Fix luminance in Cairo and GL renderer
...
In particular, fix the combination of luminance and alpha. We want to do
mask = luminance * alpha
and for inverted
mask = (1.0 - luminance) * alpha
so add a test that makes sure we do that and then fix the code and
existing tests to conform to it.
2023-07-03 22:02:44 +02:00
Barnabás Pőcze
81e9de3778
a11y: Fix some GtkATContext reference leaks
...
`gtk_accessible_get_at_context()` is transfer-full, so the returned
reference needs to be dropped. This was missing in a couple places.
2023-07-01 16:40:11 +02:00
Matthias Clasen
e57eaf16b4
Merge branch 'wip/chergert/map-as-sectionmodel' into 'main'
...
maplistmodel: implement GtkSectionModel
See merge request GNOME/gtk!6154
2023-06-30 01:50:07 +00:00
Matthias Clasen
9aabb0e98d
Add section model tests for GtkMapListModel
2023-06-29 21:30:11 -04:00
Matthias Clasen
2217509701
Plug a memory leak in gsk tests
...
Pointed out by asan.
2023-06-27 21:48:12 -04:00
Matthias Clasen
76fcd5cf25
Add another a11y test
...
This one catches the lingering 'widget' role
that only happens when widgets are realized
and rooted.
2023-06-21 19:55:46 -04:00
Matthias Clasen
510bf86268
Add another a11y test
...
Test that roles come out right for custom widgets.
2023-06-21 14:24:52 -04:00
Matthias Clasen
cca6a66518
a11y: Fix tests
...
The change to make hidden follow mappedness
means that we now need to arrange for our
test cases to be mapped.
2023-06-20 12:33:02 -04:00
Matthias Clasen
891462e5af
Add some more a11y tests
...
Check that the hidden state is as it should be.
2023-06-20 11:05:22 -04:00
Matthias Clasen
c2d6f900d9
window: Use application as accessible role
...
ARIA deems the window role to be abstract,
so lets use the application role instead.
Update affected tests.
2023-06-19 18:38:58 -04:00
Matthias Clasen
b84650c2a3
Add another a11y test
2023-06-19 18:30:41 -04:00
Matthias Clasen
93aff8a129
Add more name computation tests
...
Test the fallback for range values.
This was not working at all before
the previous commit.
2023-06-19 12:40:33 -04:00
Matthias Clasen
663e3d0811
Add tests for accessible name computation
2023-06-19 12:38:51 -04:00
Matthias Clasen
7df9cc1b47
label: Stop overriding accessible label
...
There's no need to, the accessible name computation
picks the content up where it is allowed (and not
overridden by explicit attributes).
2023-06-19 12:38:51 -04:00
Benjamin Otte
49c2366121
testsuite: Unify skipping memorytexture test
...
... and make it handle more cases of failure, in particular OpenGL and
Vulkan being unsupported by the system.
2023-06-19 15:08:00 +02:00
Benjamin Otte
ae89f6e6c0
testsuite: Add a vulkan method to memorytexure test
...
This uses the newly added NULL-surface renderer.
2023-06-19 14:13:03 +02:00
Matthias Clasen
32550fd6fc
a11y: Remove an overzealous optimisation
...
The result of calling update_property needs
to be that the property is marked as set
afterward, even if the value we pass happens
to match the default value.
After this change, scrollbars have value-now
show up as zero in the accessiblity page of
the inspector, even when that matches the lower
bound.
Test included.
Fixes : #5886
2023-06-19 07:22:32 -04:00
Matthias Clasen
c2735f98b4
testsuite: Add some more a11y tests
...
Test that overriding roles works, both
via g_object_new, and via ui files.
2023-06-17 22:00:55 -04:00
Matthias Clasen
9d79982677
Merge branch 'fontchooser-a11y' into 'main'
...
button: Improve accessible setup
See merge request GNOME/gtk!6081
2023-06-10 20:29:45 +00:00
Benjamin Otte
3681144768
Merge branch 'wip/otte/for-main' into 'main'
...
testsuite: Add another test to the listitemmanager
See merge request GNOME/gtk!6083
2023-06-10 18:51:05 +00:00
Benjamin Otte
f06cfa2967
testsuite: Print update after changes, not before
...
This way, we don't do an empty print at the start and don't miss a print
at the end.
2023-06-10 20:25:20 +02:00
Benjamin Otte
2cbee7cf86
testsuite: Check that removing listitem trackers works properly
...
We remove them at the end, so just to be sure, check again.
(Guess if I added this check because removing failed.)
2023-06-10 20:25:20 +02:00
Benjamin Otte
f5cdd6fa32
testsuite: Add another test to the listitemmanager
...
Ensure the itemmanager doesn't lose any widgets by ensuring that the
tiles with widgets do account for all children of the list widget.
2023-06-10 20:25:20 +02:00
Matthias Clasen
cf30a4f304
button: Improve accessible setup
...
With the current approach, we get duplicate labels
in the accessible name: _Cancel Cancel. Change things
around to always set the labelled-by accessible relation
if we have a label, and not the label accessible property.
2023-06-10 11:29:12 -04:00
Matthias Clasen
b69bfe3799
testsuite: More memleak fixes
2023-06-09 23:23:32 -04:00
Matthias Clasen
b439398d09
testsuite: Plug some memory leaks
2023-06-09 22:40:38 -04:00