summaryrefslogtreecommitdiff
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* Fix up css parser testsMatthias Clasen2020-01-108-324/+324
| | | | | | | Some css parser tests were relying on the parser preserving some units. Update them. The numbers look uglier this way, but they are the same numbers the css machinery was using anyway.
* update css parser test resultsMatthias Clasen2020-01-104-88/+88
| | | | We now print colors differently in some places.
* testsuite: Add a testcase for blend nodes with invisible childrenTimm Bäder2020-01-073-0/+26
|
* testsuite: Add a test case for rotated border nodeTimm Bäder2020-01-073-0/+14
|
* testsuite: Remove menu special-casingMatthias Clasen2019-12-292-16/+0
|
* testsuite: Remove menu testsMatthias Clasen2019-12-2912-3775/+2
| | | | Menus are going away.
* testsuite: Cosmetic changeMatthias Clasen2019-12-291-1/+0
|
* testsuite: Update combobox testsMatthias Clasen2019-12-291-56/+28
| | | | Some of the expected output needs to be updated.
* builder: Improve type name manglingMatthias Clasen2019-12-131-12/+20
| | | | | | | | | When looking for the get_type function for GThemedIcon, try both g_themed_icon_get_type and gthemed_icon_get_type The former is what gio has, the latter is still supported to avoid breaking gweather_location_get_type. Update tests to cover this new case.
* builder: Add GtkBuilderScopeBenjamin Otte2019-12-122-103/+151
| | | | | | | | | | | | | | | | | | | | | GtkBuilderScope is an interface that provides the scope that a builder instance operates in. It creates closures and resolves types. Language bindings are meant to use this interface to customize the behavior of builder files, in particular when instantiating templates. A default implementation for C is provided via GtkBuilderCScope (to keep with the awkward naming that glib uses for closures). It is derivable on purpose so that languages or extensions that extend C can use it. The reftest code in fact does derive GtkBuilderCScope for its own scope implementation that implements looking up symbols in modules. gtk-widget-factory was updated to use the new GtkBuilderCScope to add its custom callback symbols. So it does it different from gtk-demo, which uses the normal way of exporting symbols for dlsym() and thereby makes the 2 demos test the 2 ways GtkBuilder uses for looking up symbols.
* Fix treelistmodel testsMatthias Clasen2019-12-041-1/+1
| | | | | | They were failing to return a reference where they need to. This was uncovered by fixing an unrelated ref leak.
* Fix leaks in testsMatthias Clasen2019-12-046-6/+24
| | | | | | | | All the list model tests were leaking items, because g_list_model_get_item is transfer full. Fixing these unveils a crash in the treelistmodel and maplistmodel tests.
* css: Handle invalid :not() selectorsBenjamin Otte2019-12-034-0/+9
| | | | | | | | We weren't correctly ending the ( ) block when encountering an error. Testcases added. Fixes #2281
* testsuite: Add an inset shadow rendering test caseTimm Bäder2019-12-033-0/+29
|
* Update the test scriptsMatthias Clasen2019-11-293-3/+3
| | | | All tools got renamed to have a gtk4 prefix.
* Add a test for the previous fixMatthias Clasen2019-11-292-0/+26
|
* Merge branch 'dont-color-labels-directly-gtk4' into 'master'Timm Bäder2019-11-291-2/+6
|\ | | | | | | | | | | | | Adwaita: Avoid directly coloring labels wherever possible (GTK4) Closes #1643 See merge request GNOME/gtk!1209
| * reftests: Fix css-multi-state testTimm Bäder2019-11-291-2/+6
| | | | | | | | | | Properly unset theme CSS and use the right selector for the toggle buttons.
* | Use a single compilation symbolEmmanuele Bassi2019-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We use a compilation symbol in our build to allow the inclusion of specific headers while building GTK, to avoid the need to include only the global header. Each namespace has its own compilation symbol because we used to have different libraries, and strict symbol visibility between libraries; now that we have a single library, and we can use private symbols across namespaces while building GTK, we should have a single compilation symbol, and simplify the build rules.
* | testsuite: Add another repeat node test caseTimm Bäder2019-11-263-0/+9
|/
* testsuite: Fix expected test outputBenjamin Otte2019-11-2324-279/+0
| | | | This reverts part of 91497348bf1ea90ef1056bdc8727bbea645c21e3
* cssprovider: Don't add empty rulesetsBenjamin Otte2019-11-231-1/+1
| | | | | | | This change was lost during the parser changes, but the newly added test exposes it. And fix the expected error, the syntax has changed.
* Fix crash in parse_border()Alexandr Miloslavskiy2019-11-234-2/+10
| | | | | | | | | | | | | | | The bug was introduced in commit: 9b7640b8 by Benjamin Otte, 2012-03-26 17:24:02 styleproperty: Make _gtk_style_property_parse_value() return a CssValue In that commit, `values` changed from `GValue*` to `GtkCssValue**`, but one `!G_IS_VALUE (&values[8])` was left untouched. As a result, if `border` shorthand contains anything after color, it might crash, depending on memory layout. New test included. Fixes: #751
* builder: Connect signals automaticallyBenjamin Otte2019-11-222-6/+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.
* reftests: Switch to gtk_builder_set_closure_func()Benjamin Otte2019-11-221-27/+41
|
* builder: Remove user_data argument from gtk_builder_connect_signals()Benjamin Otte2019-11-221-5/+5
| | | | | | | | This is pretty unused and gets in the way of the next steps. A potential side effect is that for templates the widget was passed as the user data argument. If that turns out to be important, we have to special case that situation.
* testsuite: Print useful statement on notify test errorBenjamin Otte2019-11-221-13/+28
| | | | ... and don't instantly abort, test the rest of the properties, too.
* testsuite: Add a testcase for repeat nodes that don't repeatTimm Bäder2019-11-193-0/+15
|
* Merge branch 'seal-popover-menu' into 'master'Matthias Clasen2019-11-181-4/+0
|\ | | | | | | | | Privatize popover menu pieces See merge request GNOME/gtk!925
| * Privatize popover menu piecesMatthias Clasen2019-11-111-4/+0
| | | | | | | | | | | | Don't allow manual creation of popover menus anymore. This lets us also make GtkModelButton private
* | build: Don't hardcode shared_library() in meson.Niklas Hambüchen2019-11-111-2/+2
|/ | | | | | | Instead, use the standard library(). This is a meson best practice. Fixes -Ddefault_library=static not having any effect.
* text: add undo support to GtkTextChristian Hergert2019-11-051-0/+2
| | | | | | | | | This adds support using the GtkTextHistory helper for undo/redo to the GtkText widget. It is similar in use to GtkTextView, but with a simplified interface. You can disable undo support using the GtkText:enable-undo property. By default, it is enabled.
* tests: Add label-sizing.ui to the XFAIL listEmmanuele Bassi2019-11-041-0/+1
| | | | Changes in Pango may make this test fail.
* reftests: Print out a helpful errorMatthias Clasen2019-11-011-1/+1
| | | | When module loading fails, print out the error.
* reftests: Drop libtool hackMatthias Clasen2019-11-011-18/+1
| | | | We are not using libtool anymore.
* Check for diff's availabilityEmmanuele Bassi2019-11-011-0/+4
| | | | | The tests suite calls `diff` in various places, which means we need to check if it's installed.
* gtk: Add GtkNoSelectionBenjamin Otte2019-10-153-0/+4
| | | | Allows not to have anything selected.
* singleselection: Fix model propertyBenjamin Otte2019-10-153-4/+8
| | | | | | | 1. Make the model property construct-only. Allowing to change the model has invalid side effects. 2. Add a getter for the model property.
* expander: Rename CSS nodesBenjamin Otte2019-10-152-4/+4
| | | | | | | | | | The expander icon is renamed from "arrow" to "expander". The expander widget itself is renamed from "expander" to "expander-widget" (Better ideas welcome). This makes it possible to have an "expander" icon in more places then the GtkExpander widget (in particular in tree lists) and not confuse it with arrows.
* eventcontrollerkey: Change behavior of contains-focusBenjamin Otte2019-10-071-4/+4
| | | | | | contains-focus now returns TRUE when is-focus is TRUE instead of FALSE. Fixes #2184
* eventcontrollerkey: Add getters for the propertiesBenjamin Otte2019-10-071-28/+16
| | | | ...and use them.
* textview: use GtkTextViewChild for border and overlay childrenChristian Hergert2019-10-041-4/+15
| | | | | | | | | | | | | | | | | | | | | | | This creates a new GtkTextViewChild that can manage overlay children at given x,y offsets in buffer coordinates. This simplifies GtkTextView by extracting this from GtkTextWindow as well as providing a real widget for the borders. With this change, we also rename gtk_text_view_add_child_in_window() to gtk_text_view_add_overlay(). For those that were using GTK_TEXT_WINDOW_WIDGET, they can use a GtkOverlay. It does not appear that anyone was using GTK_TEXT_WINDOW_(LEFT|RIGHT|TOP|BOTTOM) for widgets in this fashion, but that can be done by setting a gutter widget with gtk_text_view_set_gutter(). We can make GtkTextViewChild public if necessary to simplify this should it become necessary. GtkTextViewChild will setup a CSS node of either "text" or "border" depending on the GtkTextWindowType. The old GtkTextViewChild has been renamed to AnchoredChild as it is only used for widgets with anchors in the GtkTextBuffer. This also removes the use of allocated GSList and instead embeds a GQueue and GList to save a few extraneous allocations.
* notebook: Use a box layoutTimm Bäder2019-09-1310-160/+150
| | | | And incidentally make the CSS node docs correct again.
* icontheme: Return a paintable from gtk_icon_info_load_iconTimm Bäder2019-09-091-4/+4
|
* icontheme: Return paintables from more APITimm Bäder2019-09-091-14/+15
|
* infobar: Inherit from GtkContainerTimm Bäder2019-09-091-18/+8
| | | | | | | infobars being a GtkBox doesn't make sense. Also implement infobars without exposing internal children. Closes #1957 because it adds the bottom border.
* fixedlayout: Don't call the child transform positionTimm Bäder2019-09-096-31/+31
| | | | It's a full transform and not just a translation these days.
* spinbutton: Use a box layoutTimm Bäder2019-09-091-8/+7
|
* Fix a crash in gtk-builder-toolMatthias Clasen2019-08-262-0/+493
| | | | | | Crash pointed out by Bastien Nocera. Testcase included.
* testsuite: Add another repeat node test caseTimm Bäder2019-08-113-0/+10
|