mirror of
https://github.com/ppy/osu.git
synced 2024-12-20 13:02:56 +08:00
Better ensure track restarted
This commit is contained in:
parent
a9488a92a9
commit
d42c872f8f
@ -45,7 +45,7 @@ namespace osu.Game.Tests.Visual.Editor
|
||||
AddUntilStep("Clock stops", () => !Clock.IsRunning);
|
||||
AddAssert("Clock stopped at end", () => Clock.CurrentTime == Clock.TrackLength);
|
||||
AddStep("Start clock again", Clock.Start);
|
||||
AddAssert("Clock looped", () => Clock.IsRunning && Clock.CurrentTime < Clock.TrackLength);
|
||||
AddAssert("Clock looped to start", () => Clock.IsRunning && Clock.CurrentTime < 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user