summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2010-10-29 19:07:21 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2010-10-29 19:07:21 -0400
commita096a24337c2e1d8f933a43116d6f608fdfcda55 (patch)
tree265ed5ddb9ecbb29fb1d8359247a1ce4c5c3552a
parent8ae0b6e9086ba147ee252b477438136f2aca9cce (diff)
downloadlibnotify-a096a24337c2e1d8f933a43116d6f608fdfcda55.tar.gz
Add a negative case to the action-icons test
-rw-r--r--tests/test-action-icons.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test-action-icons.c b/tests/test-action-icons.c
index b579848..6fa2e35 100644
--- a/tests/test-action-icons.c
+++ b/tests/test-action-icons.c
@@ -108,6 +108,25 @@ main (int argc, char **argv)
return 1;
}
+
+ n = notify_notification_new ("Music Player",
+ "Shouldn't have icons",
+ NULL);
+
+ notify_notification_set_hint (n, "action-icons", g_variant_new_boolean (FALSE));
+
+ notify_notification_add_action (n,
+ "media-skip-backward",
+ "Previous",
+ (NotifyActionCallback) previous_callback,
+ NULL,
+ NULL);
+
+ if (!notify_notification_show (n, NULL)) {
+ fprintf (stderr, "failed to send notification\n");
+ return 1;
+ }
+
g_main_loop_run (loop);
return 0;