Added reciept send functional test
This commit is contained in:
@@ -27,3 +27,24 @@ send_receipt_request(void **state)
|
||||
"</message>"
|
||||
));
|
||||
}
|
||||
|
||||
void
|
||||
send_receipt_on_request(void **state)
|
||||
{
|
||||
prof_input("/receipts send on");
|
||||
|
||||
prof_connect();
|
||||
|
||||
stbbr_send(
|
||||
"<message id=\"msg12213\" type=\"chat\" to=\"stabber@localhost/profanity\" from=\"someuser@server.org/profanity\">"
|
||||
"<body>Wants a receipt</body>"
|
||||
"<request xmlns=\"urn:xmpp:receipts\"/>"
|
||||
"</message>"
|
||||
);
|
||||
|
||||
assert_true(stbbr_received(
|
||||
"<message id=\"*\" to=\"someuser@server.org/profanity\">"
|
||||
"<received id=\"msg12213\" xmlns=\"urn:xmpp:receipts\"/>"
|
||||
"</message>"
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user