mirror of https://github.com/ppy/osu
Add too many messages to better test long scrolls
This commit is contained in:
parent
b25c37ce62
commit
f229447453
|
@ -191,7 +191,7 @@ public void TestMessageHighlightingOnFilledChat()
|
|||
{
|
||||
int index = 0;
|
||||
|
||||
fillChat();
|
||||
fillChat(100);
|
||||
|
||||
AddStep("highlight first message", () => testChannel.HighlightedMessage.Value = testChannel.Messages[index = 0]);
|
||||
AddStep("highlight next message", () => testChannel.HighlightedMessage.Value = testChannel.Messages[index = Math.Min(index + 1, testChannel.Messages.Count - 1)]);
|
||||
|
@ -304,11 +304,11 @@ public void TestLocalEchoMessageResetsScroll()
|
|||
checkScrolledToBottom();
|
||||
}
|
||||
|
||||
private void fillChat()
|
||||
private void fillChat(int count = 10)
|
||||
{
|
||||
AddStep("fill chat", () =>
|
||||
{
|
||||
for (int i = 0; i < 10; i++)
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
testChannel.AddNewMessages(new Message(messageIdSequence++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue