Commit 01eca1d0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test case completed.

parent dbbc7b1b
......@@ -473,18 +473,91 @@ simple_expect "=1081"
send "1082 29 $tno\n"
simple_expect "=1082"
# FIXME (bug 59): Test for async-sub-recipient when we are not allowed
# to see the recipient.
# Test for async-sub-recipient when we are not allowed to see the recipient.
talk_to client 0
# Create conference 7, a secret conference.
send "1083 88 [holl "secret conf"] 10100000 0 { }\n"
simple_expect "=1083 7"
# Text 22: linked via a comm-to.
set tno 22
send "1084 86 [holl "text $tno"] 3 { 0 3 2 1 0 7 } 0 { }\n"
simple_expect "=1084 $tno"
talk_to client 1
simple_expect ":16 0 $tno $any_time 5 0 7 0 3 { 0 3 6 20 2 1 }"
simple_expect ":18 15 $tno $any_time 5 0 7 0 3 { 0 3 6 20 2 1 } 0 \\*"
# Add conference 4 as recipient of text $tno.
talk_to client 0
send "1085 30 $tno 4 0\n"
simple_expect "=1085"
talk_to client 1
simple_expect ":3 16 $tno 4 0"
# Remove conference 4 as recipient of text $tno.
talk_to client 0
send "1086 31 $tno 4\n"
simple_expect "=1086"
talk_to client 1
simple_expect ":3 17 $tno 4 0"
# Remove conference 7 as recipient of text $tno.
talk_to client 0
send "1087 31 $tno 7\n"
simple_expect "=1087"
# Add conference 7 as recipient of text $tno.
send "1088 30 $tno 7 0\n"
simple_expect "=1088"
# Delete text $tno.
send "1089 29 $tno\n"
simple_expect "=1089"
talk_to client 1
simple_expect ":18 14 $tno $any_time 5 0 7 0 3 { 0 3 6 20 2 1 } 0 \\*"
# Test for async-sub-recipient when we subtract the reason we want to
# see it.
# Text 23: linked via a comm-to, sent to a conference we are a member of.
set tno 23
talk_to client 0
send "1090 86 [holl "text $tno"] 2 { 0 1 2 1 } 0 { }\n"
simple_expect "=1090 $tno"
talk_to client 1
simple_expect ":16 0 $tno $any_time 5 0 7 0 3 { 0 1 6 2 2 1 }"
simple_expect ":18 15 $tno $any_time 5 0 7 0 3 { 0 1 6 2 2 1 } 0 \\*"
# Remove conference 1 as recipient of text $tno.
talk_to client 0
send "1091 31 $tno 1\n"
simple_expect "=1091"
talk_to client 1
simple_expect ":3 17 $tno 1 0"
# Delete text $tno.
talk_to client 0
send "1092 29 $tno\n"
simple_expect "=1092"
# FIXME (bug 59): Test for async-sub-recipient when we subtract the
# reason we want to see it.
# Text 24: sent to a conference we are a member of.
set tno 24
talk_to client 0
send "1093 86 [holl "text $tno"] 1 { 0 1 } 0 { }\n"
simple_expect "=1093 $tno"
talk_to client 1
simple_expect ":16 0 $tno $any_time 5 0 7 0 2 { 0 1 6 3 }"
simple_expect ":18 15 $tno $any_time 5 0 7 0 2 { 0 1 6 3 } 0 \\*"
# Remove conference 1 as recipient of text $tno.
talk_to client 0
send "1094 31 $tno 1\n"
simple_expect "=1094"
talk_to client 1
simple_expect ":3 17 $tno 1 0"
# Delete text $tno.
talk_to client 0
send "1095 29 $tno\n"
simple_expect "=1095"
# Shut everything down.
talk_to client 0
send "1083 42 255\n"
simple_expect "=1083"
send "1084 44 0\n"
simple_expect "=1084"
send "1096 42 255\n"
simple_expect "=1096"
send "1097 44 0\n"
simple_expect "=1097"
client_death 0
client_death 1
lyskomd_death
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment