mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:52:54 +08:00
Remove hover test
This commit is contained in:
parent
245e452d41
commit
ee9696855b
@ -89,21 +89,6 @@ namespace osu.Game.Tests.Visual.Menus
|
|||||||
AddStep("Set game time long", () => mainContainer.Clock = new FramedOffsetClock(Clock, false) { Offset = 3600.0 * 24 * 1000 * 98 });
|
AddStep("Set game time long", () => mainContainer.Clock = new FramedOffsetClock(Clock, false) { Offset = 3600.0 * 24 * 1000 * 98 });
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestHoverBackground()
|
|
||||||
{
|
|
||||||
Box hoverBackground = null;
|
|
||||||
|
|
||||||
AddStep("Retrieve hover background", () => hoverBackground = (Box)toolbarClock.Children[0]);
|
|
||||||
|
|
||||||
AddStep("Move mouse away from clock", () => InputManager.MoveMouseTo(toolbarClock, new Vector2(0, 200)));
|
|
||||||
AddAssert("Hover background is not visible", () => hoverBackground.Alpha == 0);
|
|
||||||
AddStep("Move mouse on top of clock", () => InputManager.MoveMouseTo(toolbarClock));
|
|
||||||
AddAssert("Hover background is visible", () => hoverBackground.Alpha != 0);
|
|
||||||
AddStep("Move mouse away from clock", () => InputManager.MoveMouseTo(toolbarClock, new Vector2(0, 200)));
|
|
||||||
AddUntilStep("Hover background is not visible", () => hoverBackground.Alpha == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestDisplayModeChange()
|
public void TestDisplayModeChange()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user