mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
Added chatoverlay caching to testcase so test still works (chat needs to be injected so channels can be opened)
This commit is contained in:
parent
bf97f8b1b1
commit
dcdc186a53
@ -13,6 +13,7 @@ namespace osu.Game.Tests.Visual
|
||||
internal class TestCaseChatDisplay : OsuTestCase
|
||||
{
|
||||
private BeatmapSetOverlay beatmapSetOverlay;
|
||||
private readonly ChatOverlay chat;
|
||||
|
||||
private DependencyContainer dependencies;
|
||||
|
||||
@ -20,10 +21,12 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
public TestCaseChatDisplay()
|
||||
{
|
||||
Add(new ChatOverlay
|
||||
chat = new ChatOverlay
|
||||
{
|
||||
State = Visibility.Visible
|
||||
});
|
||||
};
|
||||
|
||||
Add(chat);
|
||||
|
||||
Add(beatmapSetOverlay = new BeatmapSetOverlay());
|
||||
}
|
||||
@ -31,6 +34,7 @@ namespace osu.Game.Tests.Visual
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
dependencies.Cache(chat);
|
||||
dependencies.Cache(beatmapSetOverlay);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user