1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 03:19:55 +08:00

Fix failing test

This commit is contained in:
Dean Herbert
2025-06-16 19:39:37 +09:00
Unverified
parent c888431201
commit 13df477fc0
2 changed files with 4 additions and 21 deletions
@@ -67,11 +67,11 @@ namespace osu.Game.Tests.Visual.UserInterface
AddStep("show", () => overlay.Show());
AddUntilStep("wait for content dim", () => overlay.BackgroundDimLayer.Alpha > 0);
AddUntilStep("wait for content dim", () => overlay.Alpha > 0);
AddStep("hide", () => overlay.Hide());
AddUntilStep("wait for content restore", () => Precision.AlmostEquals(overlay.BackgroundDimLayer.Alpha, 0));
AddUntilStep("wait for content restore", () => Precision.AlmostEquals(overlay.Alpha, 0));
}
[Test]
@@ -90,8 +90,6 @@ namespace osu.Game.Tests.Visual.UserInterface
private partial class TestLoadingLayer : LoadingLayer
{
public new Box BackgroundDimLayer => base.BackgroundDimLayer;
public TestLoadingLayer(bool dimBackground = false, bool withBox = true)
: base(dimBackground, withBox)
{