OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8c869e
)
icon: Improve test coverage
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 8 Apr 2012 14:19:20 +0000
(10:19 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 8 Apr 2012 14:24:51 +0000
(10:24 -0400)
gio/tests/g-icon.c
patch
|
blob
|
history
diff --git
a/gio/tests/g-icon.c
b/gio/tests/g-icon.c
index
52465c8
..
a360c28
100644
(file)
--- a/
gio/tests/g-icon.c
+++ b/
gio/tests/g-icon.c
@@
-41,6
+41,8
@@
test_g_icon_serialize (void)
GFile *location;
char *data;
GError *error;
+ gint origin;
+ GIcon *i;
error = NULL;
@@
-223,6
+225,12
@@
test_g_icon_serialize (void)
icon5 = g_icon_new_for_string (data, &error);
g_assert_no_error (error);
g_assert (g_icon_equal (icon4, icon5));
+
+ g_object_get (emblem1, "origin", &origin, "icon", &i, NULL);
+ g_assert (origin == G_EMBLEM_ORIGIN_DEVICE);
+ g_assert (i == icon2);
+ g_object_unref (i);
+
g_object_unref (emblem1);
g_object_unref (emblem2);
g_object_unref (icon);