aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2012-01-25 18:11:43 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2012-01-25 18:11:43 +0100
commitc87aff749b07f228e3fa69c1155d9128ef07620c (patch)
tree02b06322ea6eea95259fafee2491a73efc8aa588
parent39cf870292e40bd72a16fc10b20135e294d4e269 (diff)
downloadlibayatana-indicator-c87aff749b07f228e3fa69c1155d9128ef07620c.tar.gz
libayatana-indicator-c87aff749b07f228e3fa69c1155d9128ef07620c.tar.bz2
libayatana-indicator-c87aff749b07f228e3fa69c1155d9128ef07620c.zip
Test loader: check also for parent changes
-rw-r--r--tests/test-loader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-loader.c b/tests/test-loader.c
index 2140294..28c56aa 100644
--- a/tests/test-loader.c
+++ b/tests/test-loader.c
@@ -102,6 +102,7 @@ entry_change_cb (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer da
{
IndicatorObjectEntry *other_entry = data;
other_entry->name_hint = entry->name_hint;
+ other_entry->parent_object = entry->parent_object;
return;
}
@@ -140,6 +141,9 @@ test_loader_filename_dummy_signaler (void)
g_assert(g_strcmp0(removed_entry->name_hint, "removed") == 0);
g_assert(g_strcmp0(moved_entry->name_hint, "moved") == 0);
+ g_assert(added_entry->parent_object == object);
+ g_assert(removed_entry->parent_object == NULL);
+
g_object_unref(object);
return;