mirror of
https://github.com/osukey/osukey.git
synced 2025-06-08 12:58:01 +09:00
Load participants list after joining room
This commit is contained in:
parent
3e5ae7ea58
commit
d035633f95
@ -22,14 +22,12 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
{
|
{
|
||||||
public class TestSceneMultiplayerParticipantsList : MultiplayerTestScene
|
public class TestSceneMultiplayerParticipantsList : MultiplayerTestScene
|
||||||
{
|
{
|
||||||
public TestSceneMultiplayerParticipantsList()
|
[SetUpSteps]
|
||||||
: base(false)
|
public void SetupSteps()
|
||||||
{
|
{
|
||||||
|
createNewParticipantsList();
|
||||||
}
|
}
|
||||||
|
|
||||||
[SetUp]
|
|
||||||
public new void Setup() => Schedule(createNewParticipantsList);
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestAddUser()
|
public void TestAddUser()
|
||||||
{
|
{
|
||||||
@ -93,7 +91,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
public void TestCorrectInitialState()
|
public void TestCorrectInitialState()
|
||||||
{
|
{
|
||||||
AddStep("set to downloading map", () => Client.ChangeBeatmapAvailability(BeatmapAvailability.Downloading(0)));
|
AddStep("set to downloading map", () => Client.ChangeBeatmapAvailability(BeatmapAvailability.Downloading(0)));
|
||||||
AddStep("recreate list", createNewParticipantsList);
|
createNewParticipantsList();
|
||||||
checkProgressBarVisibility(true);
|
checkProgressBarVisibility(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,7 +236,17 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
|
|
||||||
private void createNewParticipantsList()
|
private void createNewParticipantsList()
|
||||||
{
|
{
|
||||||
Child = new ParticipantsList { Anchor = Anchor.Centre, Origin = Anchor.Centre, RelativeSizeAxes = Axes.Y, Size = new Vector2(380, 0.7f) };
|
ParticipantsList participantsList = null;
|
||||||
|
|
||||||
|
AddStep("create new list", () => Child = participantsList = new ParticipantsList
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
RelativeSizeAxes = Axes.Y,
|
||||||
|
Size = new Vector2(380, 0.7f)
|
||||||
|
});
|
||||||
|
|
||||||
|
AddUntilStep("wait for list to load", () => participantsList.IsLoaded);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkProgressBarVisibility(bool visible) =>
|
private void checkProgressBarVisibility(bool visible) =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user