From af0137c6d8061570d484237d57cbfa6b713fdc39 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Wed, 23 Jan 2013 19:34:43 +0100 Subject: indicator-ng: test indicator_ng_get_property --- tests/test-indicator-ng.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests') 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); -- cgit v1.2.3