summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add testfilelauncherexport-handles-properlyMatthias Clasen2023-05-152-0/+48
| | | | | This is a test to use GtkFileLauncher a bit more intensively than usual.
* Use GTK_ALIGN_BASELINE_FILLMatthias Clasen2023-05-092-16/+16
| | | | | Replace GTK_ALIGN_BASELINE with its new name everywhere.
* Introduce GTK_ALIGN_BASELINE_FILL/CENTERMatthias Clasen2023-05-071-23/+23
| | | | | | It turns out that the old behavior of GTK_ALIGN_BASELINE was actually used in libadwaita, so bring it back, and introduce a new GtkAlign value for the new behavior.
* tests: Stop using gtk_widget_get_allocated_widthMatthias Clasen2023-04-291-2/+6
|
* testbaseline2: Don't set height-requestsMatthias Clasen2023-04-291-1/+1
| | | | | Widget with height requests have their baselines ignored. Oops.
* Stop using gtk_widget_get_allocated_baselineMatthias Clasen2023-04-281-1/+1
| | | | Use gtk_widget_get_baseline instead.
* Add another baseline test clientMatthias Clasen2023-04-282-0/+449
|
* testcolumnview: Port to GtkColumnViewCellBenjamin Otte2023-04-011-8/+8
|
* testdatatable: Add a --pages optionBenjamin Otte2023-04-011-4/+30
| | | | | | | That way, local scrolling is available and the scrolling isn't random. Recycling should now involve reordering the recycled widgets instead of just keeping their order because all of them got recycled.
* Deprecate gtk_widget_translate_coordinatesMatthias Clasen2023-03-253-0/+6
| | | | | | | Update all (non-deprecated) callers to use gtk_widget_compute_point instead. Fixes: #5697
* testdndresize: Add non-resizing redrawing GL surfaceIvan Molodetskikh2023-03-151-2/+101
| | | | | | | The GL Wayland drag surface code path has a bug where it does not reset the hotspot, so if a GL-backed draw surface redraws without resizing or resetting the hotspot, it moves away. The next commit will fix that, but this commit adds a test for that.
* tests: Add resizing drag icon testIvan Molodetskikh2023-03-142-0/+124
| | | | | The test can verify that dynamic drag icon resizing and hotspot adjustment work as intended.
* tests: Stop using g_sliceMatthias Clasen2023-03-143-7/+7
|
* gtk-demo: Fix build without sincosMatthias Clasen2023-02-181-10/+12
| | | | | | | | We are getting into trouble here if sincos isn't detected but still present in headers. Avoid that. Also fix the other copy of gtkgears.c.
* 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.