a4f45483b1
Avoid repeated g_log_set_writer_func in tests
...
Since GLib 2.73.0 it can only be called once per process.
Based on commit 78c153ae in GTK 4, but combining the icontheme test's
two custom log writers into one log writer that serves both purposes,
to avoid the need for a subprocess.
Co-authored-by: Matthias Clasen <mclasen@redhat.com >
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/5119
2022-08-20 19:34:05 +01:00
41330b6c03
testsuite: Handle icontheme test better
...
Skip just the failing tests in release builds.
2020-03-13 16:31:33 +00:00
76721e736e
gtkicontheme: Don’t emit warning about fallback theme when in unit tests
...
In order to eliminate g_test_expect_message() (which doesn’t work with
G_LOG_USE_STRUCTURED), make the warning about the fallback theme not
existing be conditional on the icon theme search path containing a
system path. Any application code which modifies the search path does so
through appends and prepends, so this should not affect whether the
warning is emitted in production.
https://bugzilla.gnome.org/show_bug.cgi?id=769485
2016-08-06 17:13:25 -04:00
5ab2b8f562
Make icontheme test work with structured logging
...
Since we've opted in to G_LOG_USE_STRUCTURED, this test
now needs to do its thing using a log writer function.
2016-08-02 23:23:43 -04:00
b1d691dbfd
testsuite: Fix up icontheme test
...
This test was relying on GtkIconTheme using g_print for
debug spew. Adapt it to use g_logv instead.
2016-02-28 21:40:23 -05:00
0093b156d7
testsuite: add a test for non-square symbolic icons
...
To verify the previous fix.
https://bugzilla.gnome.org/show_bug.cgi?id=750605
2015-06-12 08:55:23 -07:00
df8a688656
icon-theme: Test inheritance vs. generic fallback
...
Add a few tests that check the behavior of icon theme inheritance
vs generic fallback vs symbolic icons.
2014-09-21 16:34:27 -04:00
d8934ea233
testsuite: Adapt to changed builtin icon paths
2014-07-02 17:17:48 -04:00
86d2315b27
icon-theme: Add another lookup order test
...
This tests rtl lookup order for non-symbolic icons.
2014-06-25 13:53:30 -04:00
7119037743
Add a test for async icon loading
2014-06-23 21:25:21 -04:00
769fc52055
Adapt icontheme tests
...
With our new, improved icon theme spec compliance, some of the
tests need updates to their expected outcomes.
2014-06-22 11:52:11 -04:00
99c0b3db06
Adapt the icontheme tests
...
With the new way of dealing with the legacy stock icons,
the builtin test needed some small updates.
2014-06-20 01:17:46 -04:00
a8939e7cff
icontheme: Add some more tests
...
This test checks that gtk_icon_theme_list_icons and
gtk_icon_theme_has_icon work as expected.
2014-06-20 01:17:45 -04:00
a6f1f8dacf
Add more icon theme tests
...
This test checks various directory size behaviours, with and
without the FORCE_SIZE flag.
2014-06-18 19:09:25 -04:00
8253b76bf6
Add a test for builtin icons
...
We want to get rid of these, but as long as we still have them,
make sure they work.
2014-06-17 14:38:18 -04:00
84cf748eae
Add more icontheme tests
...
This test is focused on svgs, and how we scale them when
loading.
2014-06-14 15:10:49 -04:00
45a64cd7d4
testsuite: Add a test for symbolic icons in specific sizes
...
Check that loading symbolics works, even if the symbolic is only
available in a fixed size.
2014-06-12 12:34:09 +02:00
f750f70c7d
tests: Make icontheme test installable
...
To make the icontheme test run successfully when installed,
we need to use the correct test-framework-provided location,
and we need to install the test theme without stripping its
subdirectory structure.
2014-05-21 13:46:49 -04:00
0f788ab1be
testsuite: Add rtl icontheme tests
2014-05-14 04:55:11 +02:00
0f5814aa33
icontheme: Add a test for lookup order
...
Add tests that verify the expected lookup order between -symbolic,
-rtl/-ltr and generic fallback.
2014-05-14 04:28:36 +02:00
26c2975007
testsuite: Add icontheme tests for generic fallback
2014-05-14 04:28:36 +02:00
77a9539e07
icontheme: Do a failed lookup at the beginning
...
Do this to catch the g_warning() that the icontheme code emits the first
time a lookup fails.
2014-05-14 04:28:36 +02:00
5f794773aa
testsuite: Add more icontheme tests
...
Check that the lookup order works properly when forcing either symbolic
or regular icons.
2014-05-14 04:28:36 +02:00
5ba4a085e2
testsuite: Add a basic icontheme test
...
Most of the work here is creating the infrastructure to have a custom
icon theme to add icons to and run tests against.
2014-05-14 04:28:35 +02:00