summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate GtkStatusbarMatthias Clasen2023-02-022-0/+4
| | | | | | | | The design patterns using statusbar are no longer popular, and it is pretty easy to make a statusbar yourself with boxes and labels, if you need one. The only thing special about GtkStatusbar was its window resize handle, but that has been gone for a long time.
* filedialog: Drop shortcut foldersMatthias Clasen2023-01-061-17/+0
| | | | | | The filechooser portal does not support this, and we are defaulting to using the portal now. Lets not offer a non-functional API.
* testfiledialog: Be more lenientMatthias Clasen2023-01-061-4/+7
| | | | Accept both open_multiple and open-multiple.
* Add a test for GtkFileDialogMatthias Clasen2023-01-052-1/+257
|
* tests: Stop using gtk_widget_show/hideMatthias Clasen2022-12-13104-205/+200
|
* tests: Silence a compiler warningMatthias Clasen2022-12-091-2/+0
|
* Deprecate GtkDialogMatthias Clasen2022-10-292-0/+4
| | | | | GtkDialog is too flexible in terms of UI (headerbars vs action bar, etc), and has archaic APIs. It is time to retire it.
* Deprecate GtkFileChooser and implementationsMatthias Clasen2022-10-291-0/+2
| | | | | | | | | These are being replaced by GtkFileDialog. This commit only moves the headers for GtkFileChooserWidget and GtkFileChooserDialog to deprecated/, and keeps the implementations in gtk/, since they will eventually be salvaged into a private GtkFileChooserWindow.
* Deprecate GtkMessageDialogMatthias Clasen2022-10-292-0/+4
| | | | | | | | | It is getting replaced by GtkAlertDialog This commit only moves the header to deprecated/, and keeps the implementation in gtk/, since it will eventually be salvaged into a private, dialog-free widget.
* Deprecate GtkFontChooser and implementationsMatthias Clasen2022-10-291-0/+2
| | | | | | | | | | These are being replaced by GtkFontDialog and GtkFontDialogButton This commit only moves the headers for GtkFontChooserWidget and GtkFontChooserDialog to deprecated/, and keeps the implementations in gtk/, since they will eventually be salvaged into a private GtkFontChooserWindow.
* Deprecate GtkColorChooser and implementationsMatthias Clasen2022-10-291-0/+2
| | | | | | | | | | These are being replaced by GtkColorDialog and GtkColorDialogButton. This commit only moves the headers for GtkColorChooserWidget and GtkColorChooserDialog to deprecated/, and keeps the implementations in gtk/, since they will eventually be salvaged into a private GtkColorChooserWindow.
* tests/testmountoperation.c: Fix build on WindowsChun-wei Fan2022-10-171-3/+3
| | | | | Sadly, we can't just use an interger for a GPid on Windows, so just cast it. Sounds silly for non-Windows, but that's life...
* tests: Ignore deprecationsMatthias Clasen2022-10-122-0/+4
| | | | | | Some of our tests use deprecated style context api. Most of them should be ported to use global style providers eventually. For now, ignore deprecations.
* tests: Ignore deprecations for render apiMatthias Clasen2022-10-122-1/+3
|
* tests: Ignore deprecationsMatthias Clasen2022-10-1137-0/+71
| | | | Eventually, most of these tests should be dropped.
* testgtk: Use global css providerBenjamin Otte2022-10-091-11/+15
|
* tests: Use per-screen CSS providersBenjamin Otte2022-10-091-3/+3
|
* testmountoperation: Test process dialogMatthias Clasen2022-10-041-0/+22
| | | | | | Without this, it is hard to trigger the dialog. Event with this, we have to force GtkMountOperation to use its own dialog.
* Deprecate GtkEntryCompletionMatthias Clasen2022-10-032-0/+8
| | | | | | We want to drop cell renderers and tree models in GTK 5. The functionality of GtkEntryCompletion may be replaced by a new widget in GTK 5.
* Deprecate the app chooser widgetsMatthias Clasen2022-10-032-0/+4
| | | | | | These are a family of pretty specialized widgets, and are very rarely used. Instead of porting them away from GtkTreeView and GtkComboBox, deprecate them.
* gdk/win32: correct gdk_win32_surface_get_handle return typeMarc-André Lureau2022-08-231-1/+0
| | | | | | The associated surface window handle is a HWND, not a HGDIOBJ. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* Beef up testfontchooserdialogMatthias Clasen2022-07-031-1/+47
| | | | Allow testing levels.
* tests: Add testdatatableIvan Molodetskikh2022-06-282-1/+299
| | | | | | | | | | | | | | Add a GtkColumnView scrolling performance test similar to the one used previously in https://gitlab.gnome.org/GNOME/gtk/-/issues/3334. The test creates a table with 20 columns and 10,000 rows and scrolls it to a random position every frame, while measuring the frame times. There is a commandline flag to pick the cell widget between none (for benchmarking raw column view scrolling) and various label types. There is also a commandline switch to disable automatic scrolling in case a manual assessment is desired. Finally, there's an argument for controlling the number of columns.
* testcolumnview: Use GtkInscriptionBenjamin Otte2022-06-101-15/+12
| | | | | | | This test is suddenly MASSIVELY faster. I wonder why. Could it be because inscription does exactly what it was made for?
* tests: Make fontchooser test build on macOSMatthias Clasen2021-12-291-0/+7
| | | | | Not sure what changed here, but we want to be able to build this without fontconfig too.
* Add a testcase for scroll-to-markMatthias Clasen2021-12-012-0/+194
| | | | This should help for figuring out #4325.
* build: Fix build with sysprof-capture but without sysprofBenjamin Otte2021-09-261-1/+1
|
* tests: Update rendernode test to use texturesBenjamin Otte2021-09-161-18/+22
|
* Fix the testupload testMatthias Clasen2021-09-101-1/+1
| | | | This can only ever have worked by accident.
* Add a custom input testMatthias Clasen2021-08-172-0/+154
| | | | | This shows the minimal work required to hook up an im context to a custom widget.
* make testdnd trashcan work againCaolán McNamara2021-06-231-1/+1
| | | | so that dragging into the 'trashcan' is detected
* testgaction: Add more widgetryMatthias Clasen2021-06-101-0/+45
| | | | | Add some toggle and check buttons to test that they work as expected as GtkActionables.
* Fix the GAction testMatthias Clasen2021-06-101-3/+9
| | | | We weren't setting the state of the stateful actions.
* tests: Fix check vs toggle button confusionMatthias Clasen2021-06-101-6/+6
| | | | Check buttons aren't toggle buttons anymore.
* GtkFileFilter: Add suffix matchesMatthias Clasen2021-06-041-2/+2
| | | | | | | | This is less flexible than a glob pattern, but it is explicitly case-insensitive, to match the behavior on Windows. Fixes: #3705
* Move text history testsMatthias Clasen2021-05-262-601/+0
| | | | | | We can test internal apis in our testsuite now, so move the text history tests there, to have them run in ci.
* testzoom: Fix the in-place rotateMatthias Clasen2021-05-131-10/+35
|
* Add a transform testMatthias Clasen2021-05-122-0/+277
| | | | This reveals some issues with scale handling.
* test: Ensure .image-button on header bar buttonsAlexander Mikhaylenko2021-05-091-4/+1
|
* test: Use more appropriate back/forward iconsAlexander Mikhaylenko2021-05-092-3/+3
|
* Remove assertions in testsMatthias Clasen2021-04-121-10/+10
|
* Add a test for popover positioningMatthias Clasen2021-02-142-0/+132
| | | | | This is useful for testing the interaction of arrows, shadows or offsets with popover positioning.
* showrendernode: Monitor input fileTimm Bäder2021-01-291-37/+76
|
* Drop unused logo resourceMatthias Clasen2021-01-281-1/+1
| | | | The inspector no longer sets a window icon.
* gl: Fix implicit leaking of shader objectxndcn2020-12-291-0/+2
| | | | | | | | | | According to OpenGL spec, a shader object will only be flagged for deletion unless it has been detached; when a program object is deleted, those shader objects attached to it will be detached but not deleted unless they have already been flagged for deletion. So we shall detach a shader object before it is deleted, and delete it before the program object is deleted best.
* build: Use a consistent style for Meson filesEmmanuele Bassi2020-12-151-6/+10
|
* gdk: Replace 'WITHDRAWN' state with async 'is-mapped' booleanJonas Ådahl2020-12-071-2/+0
| | | | | | | | | | | | | | | | | | | It was used by all surfaces to track 'is-mapped', but still part of the GdkToplevelState, and is now replaced with a separate boolean in the GdkSurface structure. It also caused issues when a widget was unmapped, and due to that unmapped a popover which hid its corresponding surface. When this surface was hidden, it emitted a state change event, which would then go back into GTK and queue a resize on popover widget, which would travel back down to the widget that was originally unmapped, causing confusino when doing future allocations. To summarize, one should not hide widgets during allocation, and to avoid this, make this new is-mapped boolean asynchronous when hiding a surface, meaning the notification event for the changed mapped state will be emitted in an idle callback. This avoids the above described reentry issue.
* tests/animated-resizing: Use gtk_window_default_size() insteadJonas Ådahl2020-12-071-1/+1
| | | | | This will actually make it resize on-demand, as the default size is the size used when computing the window size when the size is not fixed.
* tests/animated-resizing: Don't try to resize during frame dispatchJonas Ådahl2020-12-071-4/+12
| | | | | | This will not work on X11 because it's too late to resize, due to resizing being asynchronous i.e. it won't be complete before we need to draw.
* gdk: Remove GdkSurface::size-changedJonas Ådahl2020-12-071-5/+18
| | | | | It's not emitted, and everyone should use the GdkSurface::layout signal from now on.