[lasem] tests: test node_list when parent node is destroyed.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] tests: test node_list when parent node is destroyed.
- Date: Sun, 14 Nov 2010 18:09:44 +0000 (UTC)
commit bd29b34ed9fdd6394dc02a1006d48263b3448d90
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Sun Nov 14 19:08:45 2010 +0100
tests: test node_list when parent node is destroyed.
tests/dom.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/dom.c b/tests/dom.c
index 8e05685..9a50ebb 100644
--- a/tests/dom.c
+++ b/tests/dom.c
@@ -95,8 +95,11 @@ node_list_test (void)
g_assert (lsm_dom_node_list_get_item (childs, 0) == LSM_DOM_NODE (element));
g_assert (lsm_dom_node_list_get_item (childs, 1) == NULL);
- g_object_unref (childs);
g_object_unref (document);
+
+ g_assert (lsm_dom_node_list_get_length (childs) == 0);
+
+ g_object_unref (childs);
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]