mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Simplify HUD test to not require casting to specific ProgressBar
type
This commit is contained in:
parent
f1989ba24d
commit
45c5bd8403
@ -213,17 +213,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
|
||||
AddStep("attempt seek", () =>
|
||||
{
|
||||
switch (getSongProgress())
|
||||
{
|
||||
case SongProgressBar defaultBar:
|
||||
InputManager.MoveMouseTo(defaultBar);
|
||||
break;
|
||||
|
||||
case ArgonSongProgressBar argonBar:
|
||||
InputManager.MoveMouseTo(argonBar);
|
||||
break;
|
||||
}
|
||||
|
||||
InputManager.MoveMouseTo(getSongProgress() as Drawable);
|
||||
InputManager.Click(MouseButton.Left);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user