[Telepathy-commits] [telepathy-salut/master] Check that the stanzas are read in the right order

Sjoerd Simons sjoerd.simons at collabora.co.uk
Thu Oct 30 12:05:54 PDT 2008


---
 tests/check-gibber-xmpp-reader.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/check-gibber-xmpp-reader.c b/tests/check-gibber-xmpp-reader.c
index 3cb8399..15288ef 100644
--- a/tests/check-gibber-xmpp-reader.c
+++ b/tests/check-gibber-xmpp-reader.c
@@ -89,6 +89,8 @@ START_TEST (test_simple_message)
   fail_unless (strcmp (gibber_xmpp_node_get_language (node), "en") == 0);
   fail_unless (strcmp (gibber_xmpp_node_get_attribute (node, "to"),
                        "juliet at example.com") == 0);
+  fail_unless (strcmp (gibber_xmpp_node_get_attribute (node, "id"),
+                       "0") == 0);
 
   g_object_unref (event->stanza);
   g_free (event);
@@ -102,6 +104,8 @@ START_TEST (test_simple_message)
   fail_unless (strcmp (gibber_xmpp_node_get_language (node), "en") == 0);
   fail_unless (strcmp (gibber_xmpp_node_get_attribute (node, "to"),
                        "juliet at example.com") == 0);
+  fail_unless (strcmp (gibber_xmpp_node_get_attribute (node, "id"),
+                       "1") == 0);
 
   g_free (data);
   g_queue_free (received_stanzas);
-- 
1.5.6.5




More information about the Telepathy-commits mailing list