about summary refs log tree commit diff stats
BranchCommit messageAuthorAge
masterMerge branch 'victorbnl-viewnior-config'toonn2 years
 
TagDownloadAuthorAge
v1.9.3ranger-1.9.3.tar.gz  toonn5 years
v1.9.2ranger-1.9.2.tar.gz  toonn6 years
v1.9.1ranger-1.9.1.tar.gz  Wojciech Siewierski6 years
v1.9.0ranger-1.9.0.tar.gz  hut6 years
v1.9.0b6ranger-1.9.0b6.tar.gz  Wojciech Siewierski7 years
v1.9.0b5ranger-1.9.0b5.tar.gz  nfnty7 years
v1.9.0b4ranger-1.9.0b4.tar.gz  nfnty7 years
v1.9.0b3ranger-1.9.0b3.tar.gz  nfnty7 years
v1.9.0b2ranger-1.9.0b2.tar.gz  nfnty7 years
v1.9.0b1ranger-1.9.0b1.tar.gz  nfnty7 years
v1.8.1ranger-1.8.1.tar.gz  nfnty7 years
v1.8.0ranger-1.8.0.tar.gz  hut8 years
v1.7.2ranger-1.7.2.tar.gz  hut9 years
v1.7.1ranger-1.7.1.tar.gz  hut9 years
v1.7.0-emacsranger-1.7.0-emacs.tar.gz  hut9 years
v1.7.0ranger-1.7.0.tar.gz  hut9 years
v1.6.1ranger-1.6.1.tar.gz  hut11 years
v1.6.0ranger-1.6.0.tar.gz  hut11 years
v1.5.5ranger-1.5.5.tar.gz  hut12 years
v1.5.4ranger-1.5.4.tar.gz  hut12 years
v1.5.3ranger-1.5.3.tar.gz  hut12 years
v1.5.2ranger-1.5.2.tar.gz  hut13 years
v1.5.1ranger-1.5.1.tar.gz  hut13 years
v1.5.0ranger-1.5.0.tar.gz  hut13 years
v1.4.4ranger-1.4.4.tar.gz  hut13 years
v1.4.3ranger-1.4.3.tar.gz  hut13 years
v1.4.2ranger-1.4.2.tar.gz  hut13 years
v1.4.1ranger-1.4.1.tar.gz  hut13 years
v1.4.0ranger-1.4.0.tar.gz  hut14 years
v1.2.3ranger-1.2.3.tar.gz  hut14 years
v1.2.2ranger-1.2.2.tar.gz  hut14 years
v1.2.1ranger-1.2.1.tar.gz  hut14 years
v1.2.0ranger-1.2.0.tar.gz  hut14 years
v1.1.2ranger-1.1.2.tar.gz  hut14 years
v1.1.1ranger-1.1.1.tar.gz  hut14 years
v1.1.0ranger-1.1.0.tar.gz  hut14 years
v1.0.4ranger-1.0.4.tar.gz  hut14 years
v1.0.3ranger-1.0.3.tar.gz  hut14 years
v1.0.2ranger-1.0.2.tar.gz  hut14 years
v0.2.6ranger-0.2.6.tar.gz  hut14 years
v1.0.1ranger-1.0.1.tar.gz  hut15 years
v0.2.5ranger-0.2.5.tar.gz  hut15 years
v0.2.4ranger-0.2.4.tar.gz  hut15 years
v0.2.3ranger-0.2.3.tar.gz  hut15 years
v0.2.2ranger-0.2.2.tar.gz  hut15 years
v0.2.1ranger-0.2.1.tar.gz  hut15 years
v0.2.0ranger-0.2.0.tar.gz  hut15 years
v0.1.0ranger-0.1.0.tar.gz  hut15 years
pan class="w"> <stabber.h> #include <expect.h> #include "proftest.h" void sends_message_to_barejid_when_contact_offline(void **state) { prof_connect(); prof_input("/msg buddy1@localhost Hi there"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost' type='chat'>" "<body>Hi there</body>" "</message>" )); } void sends_message_to_barejid_when_contact_online(void **state) { prof_connect(); stbbr_send( "<presence to='stabber@localhost/profanity' from='buddy1@localhost/mobile'>" "<priority>10</priority>" "</presence>" ); assert_true(prof_output_exact("Buddy1 (mobile) is online")); prof_input("/msg buddy1@localhost Hi there"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost' type='chat'>" "<body>Hi there</body>" "</message>" )); } void sends_message_to_fulljid_when_received_from_fulljid(void **state) { prof_connect(); stbbr_send( "<presence to='stabber@localhost' from='buddy1@localhost/mobile'>" "<priority>10</priority>" "</presence>" ); assert_true(prof_output_exact("Buddy1 (mobile) is online")); stbbr_send( "<message id='message1' to='stabber@localhost' from='buddy1@localhost/mobile' type='chat'>" "<body>First message</body>" "</message>" ); assert_true(prof_output_exact("<< chat message: Buddy1/mobile (win 2)")); prof_input("/msg buddy1@localhost Hi there"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost/mobile' type='chat'>" "<body>Hi there</body>" "</message>" )); } void sends_subsequent_messages_to_fulljid(void **state) { prof_connect(); stbbr_send( "<presence to='stabber@localhost' from='buddy1@localhost/mobile'>" "<priority>10</priority>" "</presence>" ); assert_true(prof_output_exact("Buddy1 (mobile) is online")); stbbr_send( "<message id='message1' to='stabber@localhost' from='buddy1@localhost/mobile' type='chat'>" "<body>First message</body>" "</message>" ); assert_true(prof_output_exact("<< chat message: Buddy1/mobile (win 2)")); prof_input("/msg buddy1@localhost Outgoing 1"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost/mobile' type='chat'>" "<body>Outgoing 1</body>" "</message>" )); prof_input("/msg buddy1@localhost Outgoing 2"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost/mobile' type='chat'>" "<body>Outgoing 2</body>" "</message>" )); prof_input("/msg buddy1@localhost Outgoing 3"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost/mobile' type='chat'>" "<body>Outgoing 3</body>" "</message>" )); } void resets_to_barejid_after_presence_received(void **state) { prof_connect(); stbbr_send( "<presence to='stabber@localhost' from='buddy1@localhost/mobile'>" "<priority>10</priority>" "</presence>" ); assert_true(prof_output_exact("Buddy1 (mobile) is online")); stbbr_send( "<message id='message1' to='stabber@localhost' from='buddy1@localhost/mobile' type='chat'>" "<body>First message</body>" "</message>" ); assert_true(prof_output_exact("<< chat message: Buddy1/mobile (win 2)")); prof_input("/msg buddy1@localhost Outgoing 1"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost/mobile' type='chat'>" "<body>Outgoing 1</body>" "</message>" )); stbbr_send( "<presence to='stabber@localhost' from='buddy1@localhost/laptop'>" "<priority>5</priority>" "<show>dnd</show>" "</presence>" ); assert_true(prof_output_exact("Buddy1 (laptop) is dnd")); prof_input("/msg buddy1@localhost Outgoing 2"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost' type='chat'>" "<body>Outgoing 2</body>" "</message>" )); } void new_session_when_message_received_from_different_fulljid(void **state) { prof_connect(); stbbr_send( "<presence to='stabber@localhost' from='buddy1@localhost/mobile'>" "<priority>10</priority>" "</presence>" ); assert_true(prof_output_exact("Buddy1 (mobile) is online")); stbbr_send( "<presence to='stabber@localhost' from='buddy1@localhost/laptop'>" "<priority>8</priority>" "<show>away</show>" "</presence>" ); assert_true(prof_output_exact("Buddy1 (laptop) is away")); stbbr_send( "<message id='message1' to='stabber@localhost' from='buddy1@localhost/mobile' type='chat'>" "<body>From first resource</body>" "</message>" ); assert_true(prof_output_exact("<< chat message: Buddy1/mobile (win 2)")); prof_input("/msg buddy1@localhost Outgoing 1"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost/mobile' type='chat'>" "<body>Outgoing 1</body>" "</message>" )); stbbr_send( "<message id='message1' to='stabber@localhost' from='buddy1@localhost/laptop' type='chat'>" "<body>From second resource</body>" "</message>" ); assert_true(prof_output_regex("Buddy1/laptop:.+From second resource")); prof_input("/msg buddy1@localhost Outgoing 2"); assert_true(stbbr_received( "<message id='*' to='buddy1@localhost/laptop' type='chat'>" "<body>Outgoing 2</body>" "</message>" )); }