1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:52:55 +08:00

Fix failing tests due to frame stable seeks taking longer

This commit is contained in:
Dean Herbert 2024-01-04 15:33:18 +09:00
parent 65c29b4f09
commit 3419c59b06
No known key found for this signature in database

View File

@ -46,10 +46,12 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
moveMouseToObject(() => slider); moveMouseToObject(() => slider);
AddStep("seek after end", () => EditorClock.Seek(750)); AddStep("seek after end", () => EditorClock.Seek(750));
AddUntilStep("wait for seek", () => !EditorClock.IsSeeking);
AddStep("left click", () => InputManager.Click(MouseButton.Left)); AddStep("left click", () => InputManager.Click(MouseButton.Left));
AddAssert("slider not selected", () => EditorBeatmap.SelectedHitObjects.Count == 0); AddAssert("slider not selected", () => EditorBeatmap.SelectedHitObjects.Count == 0);
AddStep("seek to visible", () => EditorClock.Seek(650)); AddStep("seek to visible", () => EditorClock.Seek(650));
AddUntilStep("wait for seek", () => !EditorClock.IsSeeking);
AddStep("left click", () => InputManager.Click(MouseButton.Left)); AddStep("left click", () => InputManager.Click(MouseButton.Left));
AddUntilStep("slider selected", () => EditorBeatmap.SelectedHitObjects.Single() == slider); AddUntilStep("slider selected", () => EditorBeatmap.SelectedHitObjects.Single() == slider);
} }