diff options
author | Ted Gould <ted@gould.cx> | 2010-02-16 21:16:02 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-16 21:16:02 -0600 |
commit | edaa80e3a3fe85b11cb193179e7e7f5b1e9d310a (patch) | |
tree | 3ec7a1ac8a832e830198a421478366a759a8b265 | |
parent | 0a90515d6fbbaed9485f00db544ce1b4b23a8f7e (diff) | |
download | libayatana-indicator-edaa80e3a3fe85b11cb193179e7e7f5b1e9d310a.tar.gz libayatana-indicator-edaa80e3a3fe85b11cb193179e7e7f5b1e9d310a.tar.bz2 libayatana-indicator-edaa80e3a3fe85b11cb193179e7e7f5b1e9d310a.zip |
Check to ensure a global no show works.
-rw-r--r-- | tests/test-desktop-shortcuts.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/test-desktop-shortcuts.c b/tests/test-desktop-shortcuts.c index 3368c9e..621721b 100644 --- a/tests/test-desktop-shortcuts.c +++ b/tests/test-desktop-shortcuts.c @@ -16,9 +16,25 @@ test_desktop_shortcuts_creation (void) } void +test_desktop_shortcuts_globalnoshow (void) +{ + + IndicatorDesktopShortcuts * ids = indicator_desktop_shortcuts_new(SRCDIR "/test-well-formed.desktop", "Germany"); + g_assert(ids != NULL); + + const gchar ** nicks = indicator_desktop_shortcuts_get_nicks(ids); + g_assert(nicks[0] == NULL); + + g_object_unref(ids); + + return; +} + +void test_desktop_shortcuts_suite (void) { - g_test_add_func ("/libindicator/desktopshortcuts/creation", test_desktop_shortcuts_creation); + g_test_add_func ("/libindicator/desktopshortcuts/creation", test_desktop_shortcuts_creation); + g_test_add_func ("/libindicator/desktopshortcuts/globalnosho", test_desktop_shortcuts_globalnoshow); return; } |