1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 19:32:55 +08:00

Add failing assertion

This commit is contained in:
Bartłomiej Dach 2022-12-29 22:48:33 +01:00
parent b4e748d97f
commit f7febdac5e
No known key found for this signature in database

View File

@ -207,7 +207,7 @@ namespace osu.Game.Tests.Visual.Menus
AddStep("set toolbar width", () => AddStep("set toolbar width", () =>
{ {
toolbar.RelativeSizeAxes = Axes.None; toolbar.RelativeSizeAxes = Axes.None;
toolbar.Width = 0; toolbar.Width = 400;
}); });
AddStep("move mouse over news toggle button", () => AddStep("move mouse over news toggle button", () =>
{ {
@ -215,6 +215,7 @@ namespace osu.Game.Tests.Visual.Menus
InputManager.MoveMouseTo(button); InputManager.MoveMouseTo(button);
}); });
AddAssert("no ruleset toggle buttons hovered", () => !toolbar.ChildrenOfType<ToolbarRulesetTabButton>().Any(button => button.IsHovered)); AddAssert("no ruleset toggle buttons hovered", () => !toolbar.ChildrenOfType<ToolbarRulesetTabButton>().Any(button => button.IsHovered));
AddUntilStep("toolbar gradient visible", () => toolbar.ChildrenOfType<Toolbar.ToolbarBackground>().Single().Children.All(d => d.Alpha > 0));
} }
public partial class TestToolbar : Toolbar public partial class TestToolbar : Toolbar