aboutsummaryrefslogtreecommitdiff
path: root/tools/xmpp_codec.spec
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-09-11 18:18:20 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-09-11 18:18:20 +0200
commit1a320baad896b4f0d7ae6d5170f75d70a9b1020b (patch)
tree1dcf843f5750b2cd263d1da6c4e814f79fa1af77 /tools/xmpp_codec.spec
parentSupport XEP-0352: Client State Indication (diff)
Add tests for Client State Indication support
Diffstat (limited to '')
-rw-r--r--tools/xmpp_codec.spec41
1 files changed, 41 insertions, 0 deletions
diff --git a/tools/xmpp_codec.spec b/tools/xmpp_codec.spec
index 4d218839b..c5d9013ed 100644
--- a/tools/xmpp_codec.spec
+++ b/tools/xmpp_codec.spec
@@ -1757,6 +1757,31 @@
result = {shim, '$headers'},
refs = [#ref{name = shim_header, label = '$headers'}]}).
+-xml(chatstate_active,
+ #elem{name = <<"active">>,
+ xmlns = <<"http://jabber.org/protocol/chatstates">>,
+ result = {chatstate_active}}).
+
+-xml(chatstate_composing,
+ #elem{name = <<"composing">>,
+ xmlns = <<"http://jabber.org/protocol/chatstates">>,
+ result = {chatstate_composing}}).
+
+-xml(chatstate_gone,
+ #elem{name = <<"gone">>,
+ xmlns = <<"http://jabber.org/protocol/chatstates">>,
+ result = {chatstate_gone}}).
+
+-xml(chatstate_inactive,
+ #elem{name = <<"inactive">>,
+ xmlns = <<"http://jabber.org/protocol/chatstates">>,
+ result = {chatstate_inactive}}).
+
+-xml(chatstate_paused,
+ #elem{name = <<"paused">>,
+ xmlns = <<"http://jabber.org/protocol/chatstates">>,
+ result = {chatstate_paused}}).
+
-xml(delay,
#elem{name = <<"delay">>,
xmlns = <<"urn:xmpp:delay">>,
@@ -2070,6 +2095,22 @@
refs = [#ref{name = forwarded, min = 1,
max = 1, label = '$forwarded'}]}).
+-xml(feature_csi,
+ #elem{name = <<"csi">>,
+ xmlns = <<"urn:xmpp:csi:0">>,
+ result = {feature_csi, '$xmlns'},
+ attrs = [#attr{name = <<"xmlns">>}]}).
+
+-xml(csi_active,
+ #elem{name = <<"active">>,
+ xmlns = <<"urn:xmpp:csi:0">>,
+ result = {csi_active}}).
+
+-xml(csi_inactive,
+ #elem{name = <<"inactive">>,
+ xmlns = <<"urn:xmpp:csi:0">>,
+ result = {csi_inactive}}).
+
-xml(feature_sm,
#elem{name = <<"sm">>,
xmlns = [<<"urn:xmpp:sm:2">>, <<"urn:xmpp:sm:3">>],