mirror of https://github.com/ppy/osu
Update further tests to cache using `IDialogOverlay`
This commit is contained in:
parent
5d5e46ede7
commit
3cbc6cd297
|
@ -49,7 +49,7 @@ private void load(OsuColour colours)
|
|||
Dependencies.Cache(chatManager);
|
||||
|
||||
Dependencies.Cache(new ChatOverlay());
|
||||
Dependencies.Cache(dialogOverlay);
|
||||
Dependencies.CacheAs<IDialogOverlay>(dialogOverlay);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
|
|
|
@ -97,7 +97,7 @@ private void load()
|
|||
Depth = -1
|
||||
});
|
||||
|
||||
Dependencies.Cache(dialogOverlay);
|
||||
Dependencies.CacheAs<IDialogOverlay>(dialogOverlay);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ public class TestSceneBeatmapLeaderboard : OsuTestScene
|
|||
{
|
||||
private readonly FailableLeaderboard leaderboard;
|
||||
|
||||
[Cached]
|
||||
[Cached(typeof(IDialogOverlay))]
|
||||
private readonly DialogOverlay dialogOverlay;
|
||||
|
||||
private ScoreManager scoreManager;
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||
{
|
||||
public class TestSceneUserTopScoreContainer : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
[Cached(typeof(IDialogOverlay))]
|
||||
private readonly DialogOverlay dialogOverlay;
|
||||
|
||||
public TestSceneUserTopScoreContainer()
|
||||
|
|
Loading…
Reference in New Issue