mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
Add failing test
This commit is contained in:
parent
3cc574e62d
commit
35647d59a6
@ -74,6 +74,20 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddUntilStep("scrolled back to start", () => Precision.AlmostEquals(scroll.Current, 0, 0.1f));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestClick()
|
||||
{
|
||||
AddStep("scroll to end", () => scroll.ScrollToEnd(false));
|
||||
|
||||
AddStep("click button", () =>
|
||||
{
|
||||
InputManager.MoveMouseTo(scroll.Button);
|
||||
InputManager.Click(MouseButton.Left);
|
||||
});
|
||||
|
||||
AddUntilStep("scrolled back to start", () => Precision.AlmostEquals(scroll.Current, 0, 0.1f));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestMultipleClicks()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user