aboutsummaryrefslogtreecommitdiff
path: root/tests/test-indicator-ng.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-01-23 19:34:43 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-01-23 19:34:43 +0100
commitaf0137c6d8061570d484237d57cbfa6b713fdc39 (patch)
tree636ee9d8a2e234f6fd0a0550ce942495e8e38dc3 /tests/test-indicator-ng.c
parent0996bce98e7f8c1de5e0d6b3f67589ab083a4713 (diff)
downloadlibayatana-indicator-af0137c6d8061570d484237d57cbfa6b713fdc39.tar.gz
libayatana-indicator-af0137c6d8061570d484237d57cbfa6b713fdc39.tar.bz2
libayatana-indicator-af0137c6d8061570d484237d57cbfa6b713fdc39.zip
indicator-ng: test indicator_ng_get_property
Diffstat (limited to 'tests/test-indicator-ng.c')
-rw-r--r--tests/test-indicator-ng.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-indicator-ng.c b/tests/test-indicator-ng.c
index 827cc98..185b3ee 100644
--- a/tests/test-indicator-ng.c
+++ b/tests/test-indicator-ng.c
@@ -57,6 +57,21 @@ test_instantiation (void)
g_assert_cmpstr (indicator_ng_get_service_file (indicator), ==, SRCDIR "/com.canonical.test.nosuchservice.indicator");
g_assert_cmpstr (indicator_ng_get_profile (indicator), ==, "desktop");
+ {
+ gchar *service_file;
+ gchar *profile;
+
+ g_object_get (indicator, "service-file", &service_file,
+ "profile", &profile,
+ NULL);
+
+ g_assert_cmpstr (service_file, ==, SRCDIR "/com.canonical.test.nosuchservice.indicator");
+ g_assert_cmpstr (profile, ==, "desktop");
+
+ g_free (service_file);
+ g_free (profile);
+ }
+
loop = g_main_loop_new (NULL, FALSE);
g_timeout_add (200, stop_main_loop, loop);
g_main_loop_run (loop);