mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Fix failing tests due to frame stable seeks taking longer
This commit is contained in:
parent
65c29b4f09
commit
3419c59b06
@ -46,10 +46,12 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
||||
moveMouseToObject(() => slider);
|
||||
|
||||
AddStep("seek after end", () => EditorClock.Seek(750));
|
||||
AddUntilStep("wait for seek", () => !EditorClock.IsSeeking);
|
||||
AddStep("left click", () => InputManager.Click(MouseButton.Left));
|
||||
AddAssert("slider not selected", () => EditorBeatmap.SelectedHitObjects.Count == 0);
|
||||
|
||||
AddStep("seek to visible", () => EditorClock.Seek(650));
|
||||
AddUntilStep("wait for seek", () => !EditorClock.IsSeeking);
|
||||
AddStep("left click", () => InputManager.Click(MouseButton.Left));
|
||||
AddUntilStep("slider selected", () => EditorBeatmap.SelectedHitObjects.Single() == slider);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user