mirror of
https://github.com/osukey/osukey.git
synced 2025-05-22 22:17:36 +09: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
|
internal class TestCaseChatDisplay : OsuTestCase
|
||||||
{
|
{
|
||||||
private BeatmapSetOverlay beatmapSetOverlay;
|
private BeatmapSetOverlay beatmapSetOverlay;
|
||||||
|
private readonly ChatOverlay chat;
|
||||||
|
|
||||||
private DependencyContainer dependencies;
|
private DependencyContainer dependencies;
|
||||||
|
|
||||||
@ -20,10 +21,12 @@ namespace osu.Game.Tests.Visual
|
|||||||
|
|
||||||
public TestCaseChatDisplay()
|
public TestCaseChatDisplay()
|
||||||
{
|
{
|
||||||
Add(new ChatOverlay
|
chat = new ChatOverlay
|
||||||
{
|
{
|
||||||
State = Visibility.Visible
|
State = Visibility.Visible
|
||||||
});
|
};
|
||||||
|
|
||||||
|
Add(chat);
|
||||||
|
|
||||||
Add(beatmapSetOverlay = new BeatmapSetOverlay());
|
Add(beatmapSetOverlay = new BeatmapSetOverlay());
|
||||||
}
|
}
|
||||||
@ -31,6 +34,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
|
dependencies.Cache(chat);
|
||||||
dependencies.Cache(beatmapSetOverlay);
|
dependencies.Cache(beatmapSetOverlay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user