mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 08:16:22 +00:00
tests: fix functional test connect_shows_presence_updates
This commit is contained in:
@@ -59,26 +59,26 @@ connect_shows_presence_updates(void** state)
|
|||||||
"<show>dnd</show>"
|
"<show>dnd</show>"
|
||||||
"<status>busy!</status>"
|
"<status>busy!</status>"
|
||||||
"</presence>");
|
"</presence>");
|
||||||
assert_true(prof_output_exact("Buddy1 (mobile) is dnd, \"busy!\""));
|
assert_true(prof_output_exact("++ Buddy1 (mobile) is dnd, \"busy!\""));
|
||||||
|
|
||||||
stbbr_send(
|
stbbr_send(
|
||||||
"<presence to='stabber@localhost' from='buddy1@localhost/laptop'>"
|
"<presence to='stabber@localhost' from='buddy1@localhost/laptop'>"
|
||||||
"<show>chat</show>"
|
"<show>chat</show>"
|
||||||
"<status>Talk to me!</status>"
|
"<status>Talk to me!</status>"
|
||||||
"</presence>");
|
"</presence>");
|
||||||
assert_true(prof_output_exact("Buddy1 (laptop) is chat, \"Talk to me!\""));
|
assert_true(prof_output_exact("++ Buddy1 (laptop) is chat, \"Talk to me!\""));
|
||||||
|
|
||||||
stbbr_send(
|
stbbr_send(
|
||||||
"<presence to='stabber@localhost' from='buddy2@localhost/work'>"
|
"<presence to='stabber@localhost' from='buddy2@localhost/work'>"
|
||||||
"<show>away</show>"
|
"<show>away</show>"
|
||||||
"<status>Out of office</status>"
|
"<status>Out of office</status>"
|
||||||
"</presence>");
|
"</presence>");
|
||||||
assert_true(prof_output_exact("Buddy2 (work) is away, \"Out of office\""));
|
assert_true(prof_output_exact("++ Buddy2 (work) is away, \"Out of office\""));
|
||||||
|
|
||||||
stbbr_send(
|
stbbr_send(
|
||||||
"<presence to='stabber@localhost' from='buddy1@localhost/mobile'>"
|
"<presence to='stabber@localhost' from='buddy1@localhost/mobile'>"
|
||||||
"<show>xa</show>"
|
"<show>xa</show>"
|
||||||
"<status>Gone :(</status>"
|
"<status>Gone :(</status>"
|
||||||
"</presence>");
|
"</presence>");
|
||||||
assert_true(prof_output_exact("Buddy1 (mobile) is xa, \"Gone :(\""));
|
assert_true(prof_output_exact("++ Buddy1 (mobile) is xa, \"Gone :(\""));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user