summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Convert trivial users of icon theme loading to use info as paintableAlexander Larsson2020-01-291-17/+9
|
* testcalendar: Don't do dumb stuff with font sizes.Benjamin Otte2020-01-281-27/+0
| | | | If you want to test font stuff, it's 2020 and we have an inspector.
* stylecontext: Remove GTK_STYLE_PROPERTY_* definesBenjamin Otte2020-01-281-1/+1
| | | | They shouldn't be (and aren't) used anymore.
* Fix testsuite without -Dprofiler=trueMatthias Clasen2020-01-211-4/+4
| | | | Only build and run the performance tests if we have sysprof.
* Prototype a sysprof helperMatthias Clasen2020-01-212-0/+145
| | | | | | | | | | | | | | | | | This is an attempt to see how we can use sysprof data in our tests to extract useful performance numbers. Use it as a wrapper around any GTK+ process: ./testperf ./gtk4-widget-factory Currently, it repeatedly runs the given commandline, extracts the first css validation time from the resulting syscap file, and prints out the min/max/avg of the runs at the end. This relies on the environment variable GTK_DEBUG_AUTO_QUIT to cause the process to exit soon after launch.
* widget: Initialize cssnode name asapBenjamin Otte2020-01-211-3/+0
| | | | That way, it's correct in subclass's init functions.
* Update all callersMatthias Clasen2020-01-113-8/+2
|
* testdnd: Fix up for current apiMatthias Clasen2020-01-091-16/+40
|
* Update all usersMatthias Clasen2020-01-083-4/+38
|
* testdnd2: Fix the text caseMatthias Clasen2020-01-081-0/+1
| | | | We must take mime types into account when checking.
* Add another dnd testcaseMatthias Clasen2020-01-082-0/+401
| | | | | This one tests nested drop sites and interaction between DND and other gestures.
* Update all callersMatthias Clasen2020-01-086-4/+8
|
* testdnd2: Use GDK content formats apiMatthias Clasen2020-01-081-5/+6
|
* testdnd2: Update to the api change in the previous commitMatthias Clasen2020-01-081-2/+2
|
* testtoolbar: Use gtk_widget_add_controller for drag sourceMatthias Clasen2020-01-081-1/+1
|
* testlist3: Use gtk_widget_add_controller for drag sourceMatthias Clasen2020-01-081-1/+1
|
* testdnd2: Use gtk_widget_add_controller for drag sourceMatthias Clasen2020-01-081-2/+2
|
* testdnd: Use gtk_widget_add_controller for drag sourceMatthias Clasen2020-01-081-1/+1
|
* dragsource: Reshuffle api a bitMatthias Clasen2020-01-084-5/+15
| | | | | | | | | | | | Remove arguments from the constructor. For actions, we now default to COPY, which is the most common one that we should enable by default (MOVE requires handling deletion on the the source side, and ASK only makes sense if we have multiple actions). For the content provider, we add a new ::prepare signal where it should be provided just-in-time.
* dragsource: Tweak api, update all callersMatthias Clasen2020-01-082-2/+6
| | | | | Add GdkDrag back to signals, drop ::drag-data-delete, and replace it with a boolean in ::drag-end.
* Remove gtk_drop_target_get_targetMatthias Clasen2020-01-082-2/+2
| | | | | | Now that drop targets are event controllers, we can just use gtk_event_controller_get_widget. Update all callers.
* Replace gtk_drop_target_attach/detachMatthias Clasen2020-01-086-9/+9
| | | | | | Since drop targets are now just event controller, gtk_widget_add/remove_controller works just fine for them.
* droptarget: Drop defaults flagsMatthias Clasen2020-01-086-9/+9
| | | | | | These no longer have any effect. Update all callers.
* testdnd2: Add a test for ASK handlingMatthias Clasen2020-01-081-11/+79
| | | | | | It is a bit unfortunate that we need to extend the lifespan of the drop object by keeping our own ref, but I don't see a better way of doing it.
* testtreednd: Use the new asyn selection readMatthias Clasen2020-01-081-5/+20
|
* testlist3: Use async read api for selectionMatthias Clasen2020-01-081-5/+20
|
* testtreednd: Convert to GtkDropTargetMatthias Clasen2020-01-081-4/+6
|
* testnotebookdnd: Fix, partiallyMatthias Clasen2020-01-081-15/+49
| | | | Make this mostly work again.
* testtoolbar: Convert to GtkDropTargetMatthias Clasen2020-01-081-18/+13
|
* testlist3: Convert to GtkDropTargetMatthias Clasen2020-01-081-8/+6
|
* testdnd: Convert to GtkDropTargetMatthias Clasen2020-01-081-88/+81
|
* testdnd2: Port to GtkDropTargetMatthias Clasen2020-01-081-36/+39
|
* tests: Convert to GtkDragSourceMatthias Clasen2020-01-088-465/+162
| | | | | | Some tests, such as testimage did not have anything particularly worth keeping, so were removed instead of fixed.
* entry: Port icon dnd to GtkDragSourceMatthias Clasen2020-01-081-34/+9
| | | | | This requires a small change in the api, since we need to provide a GdkContentProvider now.
* testentryicons: Fix a memory leakTimm Bäder2020-01-071-2/+3
|
* Add a text view mark/cursor testMatthias Clasen2020-01-032-0/+239
| | | | | This has testcases for some issues around invalidation of marks.
* testtooltips: Test tooltips on popoversMatthias Clasen2019-12-291-43/+25
| | | | They do not currently work right.
* tests: Stop using menusMatthias Clasen2019-12-2911-2479/+23
|
* Revert unintended changesMatthias Clasen2019-12-291-88/+2
| | | | | I didn't mean to make this a complicated portal test. Go back to being a simple test.
* testfilechooser: Test the choice apisMatthias Clasen2019-12-251-4/+5
|
* Fix various new mingw compiler warningsChristoph Reiter2019-12-181-13/+16
| | | | | These are the result of us missing CI for some time now and MSYS2 having a newer GCC now I guess.
* tests/: Revert bbb56d8 for non-UNIXChun-wei Fan2019-12-172-3/+49
| | | | | The portal bits are only supported on *nix, so use the old code on non-*nix.
* Merge branch 'file-transfer' into 'master'Matthias Clasen2019-12-122-12/+74
|\ | | | | | | | | clipboard: file transfer portal support See merge request GNOME/gtk!1244
| * clipboard: file transfer portal supportMatthias Clasen2019-12-122-12/+74
| | | | | | | | | | | | | | Implement file-list <-> application/vnd.flatpak.file-list serialization by talking to the file transfer portal. See https://github.com/flatpak/xdg-desktop-portal/pull/222
* | tests: Set an existing font in testfontchooserBenjamin Otte2019-12-121-1/+1
|/
* Make a test with a custom displayMatthias Clasen2019-12-071-0/+7
| | | | This completely breaks the inspector.
* gtk-demo: Use normal way to lookup up symbolsBenjamin Otte2019-12-031-4/+2
| | | | | | | We're a normal application, so we can use the normal way to hook up code into builder files, which is using dlsym() for the function pointers. There's no need to to extra work exporting static symbols.
* gl renderer: Blur shader improvementsTimm Bäder2019-12-031-4/+2
| | | | | | | Use a two-pass blur shader, fix a few other things and unify the blurring of blur nodes and blurred outset shadow nodes. Related to #1283
* testblur: Fix default blur radiusTimm Bäder2019-12-031-2/+3
| | | | | sync it up with the adjustment value. also just add the destroyed handler.
* builder: Connect signals automaticallyBenjamin Otte2019-11-222-2/+0
| | | | | | gtk_builder_connect_signals() is no longer necessary, because all the setup that made it necessary to have this extra step is now done automatically via the closure functions.