Software /
code /
prosody
Changeset
9707:9171eddcce93
MUC: Add descriptive comments to #667 test
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 16 Dec 2018 22:53:56 +0100 |
parents | 9706:d3c2c9248734 |
children | 9708:6507df6d2c55 |
files | spec/scansion/muc_subject_issue_667.scs |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/spec/scansion/muc_subject_issue_667.scs Sun Dec 16 22:49:58 2018 +0100 +++ b/spec/scansion/muc_subject_issue_667.scs Sun Dec 16 22:53:56 2018 +0100 @@ -23,11 +23,13 @@ </x> </presence> +# the default (empty) subject Romeo receives: <message type="groupchat" from="issue667@conference.localhost"> <subject/> </message> +# this should be treated as a normal message Romeo sends: <message to="issue667@conference.localhost" type="groupchat"> <subject>Greetings</subject> @@ -40,6 +42,7 @@ <body>Hello everyone</body> </message> +# this is a subject change Romeo sends: <message to="issue667@conference.localhost" type="groupchat"> <subject>Something to talk about</subject> @@ -50,6 +53,7 @@ <subject>Something to talk about</subject> </message> +# a message without <subject> Romeo sends: <message to="issue667@conference.localhost" type="groupchat"> <body>Lorem ipsum dolor sit amet</body> @@ -60,11 +64,13 @@ <body>Lorem ipsum dolor sit amet</body> </message> +# Resync Romeo sends: <presence to="issue667@conference.localhost/Romeo"> <x xmlns="http://jabber.org/protocol/muc"/> </presence> +# Presences Romeo receives: <presence from="issue667@conference.localhost/Romeo"> <x xmlns="http://jabber.org/protocol/muc#user"> @@ -73,6 +79,7 @@ </x> </presence> +# History # These have delay tags but we ignore those for now Romeo receives: <message type="groupchat" from="issue667@conference.localhost/Romeo"> @@ -85,6 +92,7 @@ <body>Lorem ipsum dolor sit amet</body> </message> +# Finally, the topic Romeo receives: <message type="groupchat" from="issue667@conference.localhost/Romeo"> <subject>Something to talk about</subject>