diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-indicator-ng.c | 15 |
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); |