diff options
author | Ted Gould <ted@gould.cx> | 2010-01-15 15:58:56 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-15 15:58:56 -0600 |
commit | cb5f34b94c8455e8b33e69d94803f5fa2c5d9d11 (patch) | |
tree | 63b228aa7933ca4e76c3c9ea2f4056ebaef395d9 /tests | |
parent | 308e4db1bc070b6f548817fa6fe9297e64434613 (diff) | |
download | libayatana-indicator-cb5f34b94c8455e8b33e69d94803f5fa2c5d9d11.tar.gz libayatana-indicator-cb5f34b94c8455e8b33e69d94803f5fa2c5d9d11.tar.bz2 libayatana-indicator-cb5f34b94c8455e8b33e69d94803f5fa2c5d9d11.zip |
Basic location checking test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-loader.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test-loader.c b/tests/test-loader.c index 485a951..ee362bf 100644 --- a/tests/test-loader.c +++ b/tests/test-loader.c @@ -38,6 +38,23 @@ test_loader_filename_dummy_signaler (void) return; } +void +test_loader_filename_dummy_simple_location (void) +{ + IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-simple.so"); + g_assert(object != NULL); + + GList * entries = indicator_object_get_entries(object); + g_assert(entries != NULL); + g_assert(g_list_length(entries) == 1); + + g_assert(indicator_object_get_location(object, (IndicatorObjectEntry *)entries->data) == 0); + g_assert(indicator_object_get_location(object, NULL) == 0); + + g_object_unref(object); + + return; +} void test_loader_filename_dummy_simple_accessors (void) @@ -125,6 +142,7 @@ test_loader_creation_deletion_suite (void) g_test_add_func ("/libindicator/loader/dummy/blank_load", test_loader_filename_dummy_null); g_test_add_func ("/libindicator/loader/dummy/simple_load", test_loader_filename_dummy_simple); g_test_add_func ("/libindicator/loader/dummy/simple_accessors", test_loader_filename_dummy_simple_accessors); + g_test_add_func ("/libindicator/loader/dummy/simple_location", test_loader_filename_dummy_simple_location); g_test_add_func ("/libindicator/loader/dummy/signaler", test_loader_filename_dummy_signaler); return; |