mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Merge pull request #17791 from peppy/gameplay-chat-display-test-refactor
Refactor `GameplayChatDisplay` test scene to not require `MultiplayerTestScene` inheritance
This commit is contained in:
commit
9719b443a1
@ -9,13 +9,14 @@ using osu.Framework.Bindables;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.UserInterface;
|
using osu.Framework.Graphics.UserInterface;
|
||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
|
using osu.Game.Online.Rooms;
|
||||||
using osu.Game.Screens.OnlinePlay.Multiplayer;
|
using osu.Game.Screens.OnlinePlay.Multiplayer;
|
||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osuTK.Input;
|
using osuTK.Input;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.Multiplayer
|
namespace osu.Game.Tests.Visual.Multiplayer
|
||||||
{
|
{
|
||||||
public class TestSceneGameplayChatDisplay : MultiplayerTestScene
|
public class TestSceneGameplayChatDisplay : OsuManualInputManagerTestScene
|
||||||
{
|
{
|
||||||
private GameplayChatDisplay chatDisplay;
|
private GameplayChatDisplay chatDisplay;
|
||||||
|
|
||||||
@ -35,11 +36,9 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[SetUpSteps]
|
[SetUpSteps]
|
||||||
public override void SetUpSteps()
|
public void SetUpSteps()
|
||||||
{
|
{
|
||||||
base.SetUpSteps();
|
AddStep("load chat display", () => Child = chatDisplay = new GameplayChatDisplay(new Room())
|
||||||
|
|
||||||
AddStep("load chat display", () => Child = chatDisplay = new GameplayChatDisplay(SelectedRoom.Value)
|
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
Loading…
Reference in New Issue
Block a user