aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-11-30 21:12:01 +0100
committerKim Alvefur <zash@zash.se>2020-11-30 21:12:01 +0100
commit968fd6eb62bf2f9b3527fc4f2fa751dfb36c3bf5 (patch)
treefdb31575660f2a8f260406c6673d4e4aa062659a /spec/scansion
parent741a2fc37b9c842260f735a682fd458c85100ff1 (diff)
downloadprosody-968fd6eb62bf2f9b3527fc4f2fa751dfb36c3bf5.tar.gz
prosody-968fd6eb62bf2f9b3527fc4f2fa751dfb36c3bf5.zip
mod_mam: Add support for page flipping
This was easy. Needs tests tho, 100% chance of the logic being backwards.
Diffstat (limited to 'spec/scansion')
-rw-r--r--spec/scansion/mam_extended.scs44
1 files changed, 44 insertions, 0 deletions
diff --git a/spec/scansion/mam_extended.scs b/spec/scansion/mam_extended.scs
index 033547dd..7e291510 100644
--- a/spec/scansion/mam_extended.scs
+++ b/spec/scansion/mam_extended.scs
@@ -76,3 +76,47 @@ Romeo receives:
</set>
</fin>
</iq>
+
+# Get results in reverse order
+Romeo sends:
+ <iq type="set" id="mamquery2">
+ <query xmlns="urn:xmpp:mam:2" queryid="q1">
+ <flip-page/>
+ </query>
+ </iq>
+
+Romeo receives:
+ <message to="${Romeo's full JID}">
+ <result xmlns="urn:xmpp:mam:2" queryid="q1" id="{scansion:any}">
+ <forwarded xmlns="urn:xmpp:forward:0">
+ <delay stamp="2008-08-22T21:09:04Z" xmlns="urn:xmpp:delay"/>
+ <message to="someone@localhost" xmlns="jabber:client" type="chat" xml:lang="en" id="chat02" from="${Romeo's full JID}">
+ <body>U there?</body>
+ </message>
+ </forwarded>
+ </result>
+ </message>
+
+Romeo receives:
+ <message to="${Romeo's full JID}">
+ <result xmlns="urn:xmpp:mam:2" queryid="q1" id="{scansion:any}">
+ <forwarded xmlns="urn:xmpp:forward:0">
+ <delay stamp="2008-08-22T21:09:04Z" xmlns="urn:xmpp:delay"/>
+ <message to="someone@localhost" xmlns="jabber:client" type="chat" xml:lang="en" id="chat01" from="${Romeo's full JID}">
+ <body>Hello</body>
+ </message>
+ </forwarded>
+ </result>
+ </message>
+
+# FIXME unstable tag order from util.rsm
+Romeo receives:
+ <iq type="result" id="mamquery2" to="${Romeo's full JID}">
+ <fin xmlns="urn:xmpp:mam:2" complete="true" queryid="q1">
+ <set xmlns="http://jabber.org/protocol/rsm" scansion:strict="false">
+ <count>2</count>
+ <first></first>
+ <last></last>
+ </set>
+ </fin>
+ </iq>