mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Added tests for sounds and modified the transparency for the chat history window.
#story[1245]
This commit is contained in:
@@ -43,8 +43,11 @@ public class SendChatSteps {
|
||||
ie.printStackTrace();
|
||||
}
|
||||
mst.startGame();
|
||||
Thread.sleep(200);
|
||||
}
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (InterruptedException ie) {
|
||||
ie.printStackTrace();
|
||||
} }
|
||||
|
||||
|
||||
@When("^the first client has sent the message \"([^\"]*)\"$")
|
||||
@@ -54,6 +57,11 @@ public class SendChatSteps {
|
||||
|
||||
@Then("^the other client should receive the message \"([^\"]*)\"$")
|
||||
public void the_other_client_should_receive_the_message(String arg1) throws Throwable {
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (InterruptedException ie) {
|
||||
ie.printStackTrace();
|
||||
}
|
||||
Object[] packets = host.getPacketQueue().toArray();
|
||||
Pair<Integer, String> message = StreamParser.extractChatterText((StreamPacket) packets[packets.length - 1]);
|
||||
Assert.assertEquals("[time_prefix] <name_prefix> " + arg1, message.getValue());
|
||||
|
||||
Reference in New Issue
Block a user