aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-properties-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-05 09:13:58 -0800
committerTed Gould <ted@gould.cx>2010-02-05 09:13:58 -0800
commit8cdb78101d94804eab37cb0f71c3f498cc0b885c (patch)
treeb34a1c8c4909822bd0ee6fd31af1aa40317c187b /tests/test-glib-properties-client.c
parenta94d7042028da404cb336c0a0e9fcdadb2406a61 (diff)
downloadlibdbusmenu-8cdb78101d94804eab37cb0f71c3f498cc0b885c.tar.gz
libdbusmenu-8cdb78101d94804eab37cb0f71c3f498cc0b885c.tar.bz2
libdbusmenu-8cdb78101d94804eab37cb0f71c3f498cc0b885c.zip
Not failing if the IDs are different when the menuitem is root
Diffstat (limited to 'tests/test-glib-properties-client.c')
-rw-r--r--tests/test-glib-properties-client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-glib-properties-client.c b/tests/test-glib-properties-client.c
index 39815aa..cb3d371 100644
--- a/tests/test-glib-properties-client.c
+++ b/tests/test-glib-properties-client.c
@@ -60,8 +60,10 @@ verify_root_to_layout(DbusmenuMenuitem * mi, proplayout_t * layout)
g_debug("Verifying ID: %d", layout->id);
if (layout->id != dbusmenu_menuitem_get_id(mi)) {
- g_debug("\tFailed as ID %d is not equal to %d", layout->id, dbusmenu_menuitem_get_id(mi));
- return FALSE;
+ if (!dbusmenu_menuitem_get_root(mi)) {
+ g_debug("\tFailed as ID %d is not equal to %d", layout->id, dbusmenu_menuitem_get_id(mi));
+ return FALSE;
+ }
}
if (!verify_props(mi, layout->properties)) {