Georges Basile Stavracas Neto
90b1f3657f
tests: Port tests to GTK4
...
Port the tests, especially the interactive ones, to GTK4, and
libadwaita.
2022-03-07 19:51:26 +00:00
Adrien Plazas
fd60c313df
Stop using HANDY_USE_UNSTABLE_API
...
It isn't needed anymore since libhandy 0.90.0.
2020-08-18 02:51:04 +00:00
Adrien Plazas
f2f188974d
Adapt to HdyActionRow changes
...
Its title property got dropped as it was coliding with the one it
inherits from HdyPreferencesRow, so use that one instead.
See https://gitlab.gnome.org/GNOME/libhandy/-/issues/258
2020-07-30 12:07:05 +00:00
Yuri Chornoivan
e7050ab6f4
Fix minor typos
2020-07-20 10:38:09 +03:00
Adrien Plazas
097ecd4468
tests: Also search text in HdyActionRow's title and subtitle
...
This is needed as the labels of HdyActionRow are private.
2020-07-20 08:05:54 +02:00
Adrien Plazas
726684e9e0
Adapt to changes in hdy_init()
...
It must now be called after initializing GTK, and doesn't take
parameters.
2020-07-20 08:04:28 +02:00
Philip Chimento
9f6af56999
tests: Hide disabled test from compiler
...
The part where this (currently disabled) test is added, is currently
hidden behind #if 0, so hide the test function as well. Otherwise the
compiler complains that the function isn't used.
2019-09-16 14:09:40 -07:00
Adrien Plazas
555ef00b18
network: Use a HdyColumn
...
This allows the window to reach narrower sizes.
2019-09-09 22:25:23 +00:00
Benjamin Berg
e1e82ccda4
tests: Add VPN related tests
...
This adds tests for the VPN section. Note that the tests to check
sorting are disabled currently as sorting is not implemented.
2018-05-29 15:22:17 +02:00
Benjamin Berg
870b64b848
tests: Also wait for ConnectionAdded signal from NetworkManager
...
Also wait for the connection-added signal instead of only waiting for the
property notification for the connections. While not neccessary, this is
more correct.
2018-05-29 15:21:59 +02:00
Benjamin Berg
12555d62eb
tests: Add helper to find a parent widget to network test
...
In preparation for testing VPN sorting. Looks for a parent of a specific
type.
2018-05-29 15:20:30 +02:00
Benjamin Berg
d45512d680
tests: Check that Bluetooth section is not shown
...
This simply ensure the section does not randomly show up after making
unrelated changes.
2018-05-29 15:20:15 +02:00
Benjamin Berg
ab59a8f658
tests: Use g_assert_nonnull rather than testing for != NULL
...
Just a small code cleanup in the network panel test code.
2018-05-29 15:20:04 +02:00
Benjamin Berg
4f3aec794e
tests: Add delete_cb for network panel testing
...
Having a delete_cb to handle connection removal is useful for other
tests. Add the function in preparation for VPN testing.
2018-05-29 15:19:50 +02:00
Benjamin Berg
edc85abf91
tests: Return NMRemoteConnection from add_cb
...
The add_cb can be useful in other tests. Return the remote connection in
the info struct to allow its use in other situations.
2018-05-29 15:19:30 +02:00
Benjamin Berg
bfdd2e0a8f
tests: Use the same NMClient as the panel
...
Doing so means we handle the same events as the panel. This probably
makes no difference, but this way it is guaranteed we are not getting
weird inconsistencies during testing.
Also fixes a NMClient memory leak in the process.
2018-05-29 15:19:22 +02:00
Benjamin Berg
7c43f95ef9
tests: Add trivial test to check empty network panel
...
If there are no connections or devices then we should not be showing
e.g. the Bluetooth list. Add a simple check that this is handled
correctly.
2018-05-29 15:17:50 +02:00
Benjamin Berg
f3322b495c
tests: Do not show_all the network panel
...
This has the side effect of showing UI elements that should not be
visible at startup. Just add the correct gtk_widget_show calls to show
all relevant widgets.
2018-05-29 15:17:24 +02:00
Benjamin Berg
f655e46ce7
tests/network: Add basic testing of network panel
...
This adds tests for the network panel based on the test service found in
NetworkManager. Another possible solution may be to use the one from
dbusmock, however NetworkManager already has readily available code to
write tests in C which makes checking the widget hierarchy easier.
2018-05-02 22:29:33 +00:00