aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-properties-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-05-19 04:34:59 +0200
committerTed Gould <ted@canonical.com>2009-05-19 04:34:59 +0200
commit85ff79a58f531a5173565bbe1b97b5a9c7e4148e (patch)
tree64572db32c921c70ba7e60598073af54733a7797 /tests/test-glib-properties-client.c
parent17a0a712d5187101216ed937955c6871a000d8b0 (diff)
downloadlibdbusmenu-85ff79a58f531a5173565bbe1b97b5a9c7e4148e.tar.gz
libdbusmenu-85ff79a58f531a5173565bbe1b97b5a9c7e4148e.tar.bz2
libdbusmenu-85ff79a58f531a5173565bbe1b97b5a9c7e4148e.zip
Starting to verify the properties
Diffstat (limited to 'tests/test-glib-properties-client.c')
-rw-r--r--tests/test-glib-properties-client.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test-glib-properties-client.c b/tests/test-glib-properties-client.c
index d840217..145e4fd 100644
--- a/tests/test-glib-properties-client.c
+++ b/tests/test-glib-properties-client.c
@@ -38,6 +38,19 @@ verify_props (DbusmenuMenuitem * mi, gchar ** properties)
return TRUE;
}
+ /* Verify they're all there and correct */
+ guint i;
+ for (i = 0; properties[i] != NULL; i += 2) {
+ const gchar * value = dbusmenu_menuitem_property_get(mi, properties[i]);
+ if (g_strcmp0(value, properties[i + 1])) {
+ g_debug("\tFailed as property '%s' should be '%s' and is '%s'", properties[i], properties[i+1], value);
+ return FALSE;
+ }
+ }
+
+ /* Verify that we don't have any extras */
+ // GList * props = dbusmenu_menuitem_properties_list(mi);
+
return TRUE;
}