summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Do not create a file icon when no filename is providedMarco Trevisan (Treviño)2021-07-091-0/+2
| | | | | This would fail otherwise as GFileIcon requires a GFile parameter on construction.
* Tests: add more add-child testsJuan Pablo Ugarte2020-08-051-24/+25
| | | | | | | | | | | | | | | | | Add test case for the following classes GTK_TYPE_FILE_CHOOSER_BUTTON GTK_TYPE_OFFSCREEN_WINDOW GTK_TYPE_APPLICATION_WINDOW GTK_TYPE_ASPECT_FRAME GTK_TYPE_STACK GTK_TYPE_REVEALER GTK_TYPE_POPOVER GTK_TYPE_HEADER_BAR GTK_TYPE_ACTION_BAR GTK_TYPE_SEARCH_BAR GTK_TYPE_SCROLLED_WINDOW GTK_TYPE_LIST_BOX GTK_TYPE_FLOW_BOX
* Tests: re enable commented test in Add ChildJuan Pablo Ugarte2020-08-051-8/+0
| | | | | Enable GTK_TYPE_FILE_CHOOSER_BUTTON, GTK_TYPE_RECENT_CHOOSER, GTK_TYPE_DIALOG and GTK_TYPE_ASSISTANT tests.
* Tests: fix toplevel testJuan Pablo Ugarte2020-07-271-1/+0
| | | | Do not free glade_project_toplevels() list
* Tests: add refcount testJuan Pablo Ugarte2020-07-272-0/+52
| | | | Add basic test to make sure project refcount cycle is working properly.
* Tests: replace \t with spacesJuan Pablo Ugarte2020-07-262-36/+36
|
* Tests: use g_assert_true() instead of g_assert()Juan Pablo Ugarte2020-07-184-29/+29
| | | | | | | g_assert() should not be used in unit tests because it can be turned off in final releases of code by defining G_DISABLE_ASSERT. Fix issue #460 "3.37.0: test suite fails because glade uses incorrectly asserts in test units"
* Tests: add python and javascript test caseJuan Pablo Ugarte2020-06-084-12/+83
| | | | Add test case to make sure both python and js plugins work
* Plugins: add documentation for GJS pluginJuan Pablo Ugarte2020-06-082-0/+15
| | | | | Add an example on how to use JavaScript objects with Glade Improve python example
* build: Remove autotoolsIñigo Martínez2020-05-271-77/+0
| | | | Relay on meson for build
* Fix minor typosYuri Chornoivan2020-03-221-1/+1
|
* tests: Include back GtkTreeViewColumnVictor Toso2019-11-061-2/+1
| | | | | | | | | | | This was removed in ccb3a8c7dcbd7bd for a release due some criticals which are not happening anymore. Also fixes: > ../tests/add-child.c:156:1: warning: ‘assert_column_parented’ defined > but not used [-Wunused-function] > 156 | assert_column_parented (GObject *parent, > | ^~~~~~~~~~~~~~~~~~~~~~
* Allow to use GtkFileChooserNativeCorentin Noël2019-06-071-1/+3
|
* build: Port to meson build systemIñigo Martínez2019-03-301-0/+52
| | | | | | | meson is a build system focused on speed an ease of use, which helps speeding up the software development. meson build system has been added along with autotools.
* tests/create-widgets.c: removed various test to make distcheck work.Juan Pablo Ugarte2016-03-221-1/+9
| | | | I will make a release and fix them in master.
* tests/add-child.c: removed GtkTreeViewColumn test to make distcheck work for ↵Juan Pablo Ugarte2016-03-221-1/+2
| | | | release
* add-child test: ignore deprecated classes.Juan Pablo Ugarte2014-05-151-0/+3
|
* Restored widgets classes that do not fail anymore in gtk 3.12Juan Pablo Ugarte2014-03-261-7/+1
|
* Fixed distcheck errorsJuan Pablo Ugarte2014-03-241-3/+12
| | | | Fixed create-widgets test GtkMessageDialog error and skip creating GtkAboutDialog
* tests/Makefile.am Removed unused DATADIR macroJuan Pablo Ugarte2013-12-181-1/+0
|
* tests/toplevel-order: added missing gresource fileJuan Pablo Ugarte2013-12-181-0/+11
|
* tests/toplevel-order: User GResource for test UI files to make sureJuan Pablo Ugarte2013-12-182-15/+42
| | | | it will work in distcheck
* tests/create-widgets: skip GtkRecentChooser because it tries to remove an ↵Juan Pablo Ugarte2013-12-181-1/+3
| | | | unknown source id
* _glade_tsort() simplyfied api by using a GList for edges instead of aJuan Pablo Ugarte2013-12-112-4/+4
| | | | | | | | custom linked struct since we do not need the marginal speedup now that dependencies are only between toplevels. This allow us to easily sort edges alphabetically. tests/toplevel-order: Updated to new _glade_tsort() api
* Added toplevel-order testJuan Pablo Ugarte2013-11-158-2/+372
|
* GtkIconFactory adaptor: Added a destroy_object functionTristan Van Berkom2013-04-061-2/+0
| | | | | | | | | The GtkIconFactory adaptor adds the factory to the default with gtk_icon_factory_add_default() at post create time, now we remove it at destroy object time. Enabled the create-objects test for GtkIconFactory which now passes again.
* Test Cases: Now GtkComboBox finalizes properly.Tristan Van Berkom2013-04-052-7/+3
| | | | The bug had to do with a call to glade_widget_rebuild()
* Added new test: add-child.cTristan Van Berkom2013-04-052-1/+318
| | | | | | | The new test tests every parent/child relationship in the base GTK+ catalog, a child is added to the parent, the expected relationship is tested, and unreffing the parent GladeWidget is tested to also finalize the child GladeWidget and both runtime GObjects.
* create-widgets.c test: Avoid GtkFileChooserButtonTristan Van Berkom2013-04-051-1/+5
| | | | | Currently this one causes subsequent tests to fail due to a leaked GTask callback.
* Added Glade's first unit test (about time !)Tristan Van Berkom2013-04-052-0/+147
This patch clears the way for unit testing, some environment variables are added to ensure unit tests run on code that is not installed but in tree. The added test iterates over all widgets in the catalog, uses the adaptor to create a GladeWidget and asserts that the GladeWidget and it's internal object is finalized after unreferencing the GladeWidget.