summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* meson: improve comment and fix deprecated functionsNelson Benítez León2023-05-022-2/+2
| | | | | | | | | | - Clarify that 'mm-glib' dep is for ModemManager (not Network Manager which is below). The comment also helps people which may confuse it with glibmm library. - Fix following Meson warning about two deprecated functions: WARNING: Deprecated features used: * 0.56.0: {'dependency.get_pkgconfig_variable', 'meson.source_root'}
* wifi: Add QR code to share Wi-Fi networksHendrik Müller2023-02-141-0/+1
| | | | | | | | | | | | Many devices are able to scan a specifically formatted QR code to connect to a wifi network. To make sharing of wifi connections easier, it would be helpful to display such a QR code in the wifi settings. A button is added to the wifi connection row. This row is shown in the general wifi settings panel, as well as in the "Known Wi-Fi Network" dialog. Clicking the button opens an additional dialog, which shows the QR code.
* tests: Disable GTK accessibilityGeorges Basile Stavracas Neto2023-02-141-1/+2
| | | | So that tests can run without the warning.
* tests: Fix possible race in test_connection_multi_add_activate()Bastien Nocera2023-01-181-1/+1
| | | | | | | | Wait for the "state" property to change as well as the "state-reason". We only update the UI when the former arrives, but the test was working correctly on faster machines, making it difficult to pinpoint. Closes: #1768
* tests: Add test for keyboard shortcut normalizationSebastian Keller2022-08-224-0/+241
| | | | | This tests if the shortcuts generated from an event are in the format that the shell expects.
* info-overview: Replace llvmpipe with “Software Rendering”Norbert Pfeiler2022-03-231-1/+2
|
* info-overview: Add some commonly used trademarksNorbert Pfeiler2022-03-231-3/+4
| | | | | | | | Those are not always present in the device string. Guidance was taken from the usage on vendor websites. NVIDIA actually has the rights to GTX™ but doesn’t seem to use it, in contrast to RTX™.
* info-overview: Remove some rare @ x.yz GHz specificationNorbert Pfeiler2022-03-231-1/+1
|
* info-overview: Remove redundant/elaborate infoNorbert Pfeiler2022-03-231-5/+5
| | | | Remove redundant/elaborate in strings like CPU, Core and Processor.
* info-overview: Remove some junk info, like PCIe and SSENorbert Pfeiler2022-03-231-0/+2
|
* info-overview: Replace the trademark symbols in a more generic wayNorbert Pfeiler2022-03-231-0/+2
|
* info-overview: Use a more generic regex to match the Mesa infosNorbert Pfeiler2022-03-231-1/+1
|
* info-overview: Always omit Gallium, not just for AMDNorbert Pfeiler2022-03-231-0/+2
|
* info-overview: If names are all caps, leave them beNorbert Pfeiler2022-03-231-5/+8
| | | | | | | | | This made everything AMD lower case after the second word and is likely unintentional for something like EPYC™. e.g. was AMD Ryzen threadripper 1950x 16-core processor AMD Radeon rx 580 series
* info-overview: There is no “AMD®”Norbert Pfeiler2022-03-231-5/+5
| | | | AMD doesn’t have a registered trademark for the string only.
* tests: Port tests to GTK4Georges Basile Stavracas Neto2022-03-078-275/+186
| | | | | Port the tests, especially the interactive ones, to GTK4, and libadwaita.
* meson: drop unused argument for i18n.merge_file()Jan Beich2022-01-071-1/+0
| | | | | | | | | Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0. panels/applications/meson.build:10:5: ERROR: Function does not take positional arguments. panels/background/meson.build:10:5: ERROR: Function does not take positional arguments. panels/camera/meson.build:10:5: ERROR: Function does not take positional arguments. [...]
* Disable the canonicalization testGeorges Basile Stavracas Neto2020-09-051-1/+1
| | | | The test needs fixing, and the release needs to happen again.
* Stop using HANDY_USE_UNSTABLE_APIAdrien Plazas2020-08-181-1/+0
| | | | It isn't needed anymore since libhandy 0.90.0.
* Revert "Temporarily disable the canonicalization test"Georges Basile Stavracas Neto2020-08-151-1/+1
| | | | This reverts commit db80e32730fd18f0039ad3dd68536b7160f5d20d.
* Temporarily disable the canonicalization testGeorges Basile Stavracas Neto2020-08-151-1/+1
| | | | | This needs to be investigated, but the release needs to happen.
* Add tests for text escapeMohammed Sadiq2020-08-052-0/+90
|
* Adapt to HdyActionRow changesAdrien Plazas2020-07-301-3/+5
| | | | | | | 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
* Fix minor typosYuri Chornoivan2020-07-202-5/+5
|
* tests: Also search text in HdyActionRow's title and subtitleAdrien Plazas2020-07-201-35/+73
| | | | This is needed as the labels of HdyActionRow are private.
* Adapt to changes in hdy_init()Adrien Plazas2020-07-201-1/+1
| | | | | It must now be called after initializing GTK, and doesn't take parameters.
* test: Add tests for time editor widgetMohammed Sadiq2020-06-152-15/+497
|
* tests: Show why tests are not splitBenjamin Berg2020-05-111-1/+1
| | | | | The GTest python class tries to split tests into separte runs. However, that can fail, show why.
* info: No need to put TM and (R) as exponentsBastien Nocera2019-11-051-8/+8
| | | | | The font glyphs already put those characters in the upper right of where the character should be.
* tests: Hide disabled test from compilerPhilip Chimento2019-09-161-0/+4
| | | | | | 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.
* network: Use a HdyColumnAdrien Plazas2019-09-091-0/+3
| | | | This allows the window to reach narrower sizes.
* info: Rename info panel to info-overview for consistencyRobert Ancell2019-09-091-1/+1
|
* build: Include generated sources in declared dependenciesTing-Wei Lan2019-08-251-4/+1
| | | | | | | | | | | | | Sometimes ninja decides to compile tests/interactive-panels/main.c, which requires shell/resources.h, before shell/resources.h is generated. The fix is to use 'sources' argument of declare_dependency to properly declare the dependency on generated headers. A fix for tests/datetime and panels/datetime is also included in the commit to fix a similar problem. Closes https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/472
* project: Disable datetime testGeorges Basile Stavracas Neto2019-08-081-1/+1
|
* shell: Add position to cc_shell_embed_widget_in_header()Georges Basile Stavracas Neto2019-05-212-3/+4
| | | | | | | So we can control where the widget should be added to. The main window only supports left and right positions. https://gitlab.gnome.org/GNOME/gnome-control-center/issues/528
* tests: Disable ATK as it is currently creating issuesBenjamin Berg2018-12-072-2/+6
|
* tests: Add test panels for sidebar widgetGeorges Basile Stavracas Neto2018-11-169-3/+166
| | | | | Two tests for sidebar widget were added: one at the main sidebar view, the other inside the Details category.
* tests: Properly generate desktop filesGeorges Basile Stavracas Neto2018-11-161-5/+7
|
* tests: Ensure generated function have a __qualname__ attributeBenjamin Berg2018-11-131-0/+4
| | | | | | This is solely used for filtering by unittest, however, if it is missing, then unittest will fail. So generate a reasonable name (which is unfortunately not identical to the real name of the attribute).
* tests: Remove translatable attributes from .ui filesPiotr Drąg2018-11-122-3/+3
|
* Revert "tests: Temporarily disable Python tests"Benjamin Berg2018-11-121-4/+4
| | | | | | | The python based tests are working again. Re-enable them so that they get run by the CI. This reverts commit 2f44c441fff8e7c1b9d3832c7716aba659aaa9c7.
* Introduce interactive test for panelsGeorges Basile Stavracas Neto2018-11-1117-0/+640
| | | | | | | | | | | | | | | The purpose of this interactive test is to be able to prototype new features for CcPanel without having to adapt existing panels. Three test panels were added as part of this initial patch: * Dynamic panels: panel exercising the ability to show and hide itself at runtime. * Header: panel that embeds a header widget. * Static Initializer: panel that sets a static init function to run at startup.
* tests: Temporarily disable Python testsGeorges Basile Stavracas Neto2018-08-271-4/+4
| | | | | | | They're broken on my computer, and Python does a really terrible job at communicating why. So after 8 hours of debugging, I decided this is just a lost battle to me and not important enough.
* tests: free TzInfoRyuzakiKK2018-08-241-0/+1
| | | | | | | | | | | | | | The timezone information is allocated with `tz_info_from_location` but never deallocated. LeakSanitizer complains about this memory leak. ``` Direct leak of 13568 byte(s) in 424 object(s) allocated from: /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:95 #1 0x7f63899bab21 in g_malloc0 (/usr/lib/libglib-2.0.so.0+0x51b21) ../tests/datetime/test-timezone-gfx.c:30 #3 0x7f63899dc76a (/usr/lib/libglib-2.0.so.0+0x7376a) ```
* tests: close opened directoryRyuzakiKK2018-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | The directory opened with `g_dir_open` is never closed, so LeakSanitizer complains about a memory leaks. ``` Direct leak of 8 byte(s) in 1 object(s) allocated from: /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:86 #1 0x7f2012908ac9 in g_malloc (/usr/lib/libglib-2.0.so.0+0x51ac9) #2 0x7f2012922aac in g_memdup (/usr/lib/libglib-2.0.so.0+0x6baac) #3 0x7f20128ed2d5 (/usr/lib/libglib-2.0.so.0+0x362d5) #4 0x7f20128ed338 in g_dir_open (/usr/lib/libglib-2.0.so.0+0x36338) ../tests/datetime/test-endianess.c:29 #6 0x7f201292a76a (/usr/lib/libglib-2.0.so.0+0x7376a) #7 0x7f201292a69a (/usr/lib/libglib-2.0.so.0+0x7369a) (/usr/lib/libglib-2.0.so.0+0x73951) #9 0x7f201292a972 in g_test_run (/usr/lib/libglib-2.0.so.0+0x73972) #10 0x560ad630cbff in main ../tests/datetime/test-endianess.c:66 ```
* tests: Don't hard-code the path to pythonTing-Wei Lan2018-08-133-4/+4
| | | | | | Python isn't always installed in /usr/bin. If we hard-code the path, these tests will fail on *BSD because they install python in different prefixes such as /usr/local and /usr/pkg.
* tests: increase the tests timeoutClaudio André2018-07-152-3/+3
| | | | This is only needed for non AMD64.
* common: Use g_auto for variablesRobert Ancell2018-06-071-32/+19
|
* tests: Add VPN related testsBenjamin Berg2018-05-291-0/+293
| | | | | This adds tests for the VPN section. Note that the tests to check sorting are disabled currently as sorting is not implemented.
* tests: Also wait for ConnectionAdded signal from NetworkManagerBenjamin Berg2018-05-291-1/+1
| | | | | | 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.