summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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.