1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 11:53:21 +08:00
This commit is contained in:
Andrei Zavatski 2021-05-11 16:08:09 +03:00
parent 01f5c77dac
commit 208224cc0d
2 changed files with 4 additions and 4 deletions

View File

@ -35,11 +35,11 @@ namespace osu.Game.Tests.Visual.Online
public void TestVisibility()
{
AddStep("Change metadata to null", () => metadataBindable.Value = null);
AddAssert("Panel is hidden", () => panel.IsPresent == false);
AddAssert("Panel is hidden", () => !panel.IsPresent);
AddStep("Change metadata", () => metadataBindable.Value = metadata);
AddAssert("Panel is visible", () => panel.IsPresent == true);
AddAssert("Panel is visible", () => panel.IsPresent);
AddStep("Change metadata to null", () => metadataBindable.Value = null);
AddAssert("Panel is hidden", () => panel.IsPresent == false);
AddAssert("Panel is hidden", () => !panel.IsPresent);
}
private static readonly APINewsSidebar metadata = new APINewsSidebar

View File

@ -160,7 +160,7 @@ namespace osu.Game.Overlays.News.Sidebar
{
IdleColour = colourProvider.Light2;
HoverColour = colourProvider.Light1;
Action = () => { }; // Avoid button being disabled since there's no proper action assigned.
Action = () => { }; // Avoid button being disabled since there's no proper action assigned.
}
}
}